案例:PHP案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
<?php
2
$cars=array("Volvo","BMW","SAAB");
3
sort($cars);
4
5
$clength=count($cars);
6
for($x=0;$x<$clength;$x++)
7
   {
8
   echo $cars[$x];
9
   echo "\n";
10
   }
11
?>