//for循环遍历
for($i=0;$i<count($arr);$i++){
echo key($arr).'=>'.current($arr).'<br>';
next($arr);
};
//while遍历
$i=0;
while($i<count($arr)){
echo key($arr).'=>'.current($arr).'<br>';
next($arr);
$i++;
}
//foreach遍历
foreach ($arr as $key => $value) {
echo $key.'=>'.$value;
}