Improve the code to be more efficient.
This commit is contained in:
parent
f4accf8ed9
commit
4ee2ec9ea1
@ -8,8 +8,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$imgs[0] = "imgs/img0.jpg";
|
$imgs[0] = "imgs/img0.jpg";
|
||||||
$imgs[1] = "imgs/img1.jpg";
|
$imgs[1] = "imgs/img1.jpg";
|
||||||
$select = rand(0, 1);
|
|
||||||
?>
|
?>
|
||||||
<img src="<?= $imgs[$select] ?>" />
|
<img src="<?= $imgs[rand(0, 1)] ?>" />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user