Add PHP exercise ej2
This commit is contained in:
parent
cc318e0687
commit
f4accf8ed9
15
2/IAW/assignments/ejercicios-php/ej2.php
Normal file
15
2/IAW/assignments/ejercicios-php/ej2.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";
|
||||
$select = rand(0, 1);
|
||||
?>
|
||||
<img src="<?= $imgs[$select] ?>" />
|
||||
</body>
|
||||
</html>
|
BIN
2/IAW/assignments/ejercicios-php/imgs/img0.jpg
Normal file
BIN
2/IAW/assignments/ejercicios-php/imgs/img0.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
BIN
2/IAW/assignments/ejercicios-php/imgs/img1.jpg
Normal file
BIN
2/IAW/assignments/ejercicios-php/imgs/img1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
Loading…
Reference in New Issue
Block a user