简单教程
提交运行
代码编辑器:
<?php $cars = array("Volvo","BMW","Toyota"); $arrlength = count($cars); for( $x=0; $x<$arrlength; $x++ ) { echo $cars[$x]; echo "<br>"; }
运行结果: