Add bonus PHP exercise.
This commit is contained in:
parent
4ee2ec9ea1
commit
153f2f8659
15
2/IAW/assignments/ejercicios-php/ej2-1.php
Normal file
15
2/IAW/assignments/ejercicios-php/ej2-1.php
Normal 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>
|
BIN
2/IAW/assignments/ejercicios-php/imgs/img2.jpg
Normal file
BIN
2/IAW/assignments/ejercicios-php/imgs/img2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 KiB |
Loading…
Reference in New Issue
Block a user