|
<? srand(time()); echo time()."<hr>"; $i = rand() % 3; switch ($i) { case 0: $v = "<marquee behavior=alternate>This is zero</marquee>"; print $v; break; case 1: echo "This is one. This line is not error. Because echo can display in this type."; break; case 2: $v = "This is THAILAND"; echo strtoupper($v)."<br>"; # THIS IS THAILAND echo strrev($v)."<br>"; # DNALIAHT SI SIHT echo str_replace("i","<b>i</b>",$v); # Th<b>i</b>s <b>i</b>s THAILAND break; } ?> |