$arr = [];
$arr[] = "张三";
$arr[] = "李四";
$arr[] = "王五";
$len = count($arr);
for($i=0; $i<$len; $i++){
echo $arr[$i];
}
$arr = [];
$arr[] = "张三";
$arr[] = "李四";
$arr[] = "王五";
$len = count($arr);
for($i=0; $i<$len; $i++){
echo $arr[$i];
}