'kwj','age'=>'30','native'=>'dongguan']; //遍历数组值 foreach($array as $value){ echo $value; echo ''; } echo '------'; //遍历键名和键值 foreach($array as $key=>$value){ echo "$key : $value"; echo ''; } ?>