?php function wuxian($arr) { foreach($arr as $id => $v){ if(is_array($v)) { wuxian($v); } else{ echo $v."<br>"; } } } $array=array(‘1‘,‘2‘,‘3‘,‘4‘,array("8",array("5"),"6","7",array("19",array("234","45")))); wuxian($array); ?>
时间: 2024-10-08 07:54:34