直接上编码:
<?php$a = rand(100,999);$b = rand(100,999);$c = rand(100,999);echo "a="."$a"."<br>";echo "b="."$b"."<br>";echo "c="."$c"."<br>";if(($a > $b ) && ($a > $c) && ($b > $c)){echo "$a>"."$b>"."$c";}elseif(($a > $b ) && ($a > $c) && ($c > $b)){echo "$a>"."$c>"."$b";}elseif(($b > $a ) && ($b > $c) && ($a > $c)){echo "$b>"."$a>"."$c";}elseif(($b > $a ) && ($b > $c) && ($c > $a)){echo "$b>"."$c>"."$a";}elseif(($c > $a ) && ($c > $b) && ($b > $a)){echo "$c>"."$b>"."$a";}elseif(($c > $a ) && ($c > $b) && ($a > $b)){echo "$c>"."$a>"."$b";}?>
效果如下: