Add bonus PHP exercise.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-11-10 20:41:24 +01:00
parent 4ee2ec9ea1
commit 153f2f8659
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Imagen Aleatoria</title>
</head>
<body>
<?php
$imgs[0] = "imgs/img0.jpg";
$imgs[1] = "imgs/img1.jpg";
$imgs[2] = "imgs/img2.jpg";
?>
<img src="<?= $imgs[rand(0, 2)] ?>" />
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB