In this article php coding when page refresh image change.
Using switch case create a random number and give every case an image and when you refresh page image change automatically.
 Here is code....
<?php
srand( microtime() * 1000000 );
$number = rand(1,2);
switch($number)
{
     case 1: 
     $img = "images/picture1.png";
     break;
     case 2: 
     $img = "images/picture2.png";
     break;
}
echo "<img src=images/".$img." />";
?>
 
 Many code for PHP
 
 
Labels: PHP