php 数值数组遍历

 

<?php
$cars=array("Volvo","BMW","Toyota");
$arrlength=count($cars);

for($x=0;$x<$arrlength;$x++)
{
echo $cars[$x];
echo "<br>";
}
?>

 

posted @ 2018-12-08 11:38  anobscureretreat  阅读(161)  评论(0编辑  收藏  举报