php基础:遍历循环多为数组

$arr = array('one'=>array('name'=>'张三','age'=>'23','sex'=>'男'),
    'two'=>array('name'=>'李四','age'=>'43','sex'=>'女'),
    'three'=>array('name'=>'王五','age'=>'32','sex'=>'男'),
    'four'=>array('name'=>'赵六','age'=>'12','sex'=>'女'));
foreach($arr as $key=>$value){
foreach($value as $key2=>$value2){
   echo $value2;
}
echo "<br>";
}

?>

posted @ 2016-11-13 12:26  出来混迟早要胖的  阅读(275)  评论(0编辑  收藏  举报