时间:2021-07-01 10:21:17 帮助过:49人阅读
Array ( [0] => 65 [1] => 66 [2] => 71 [3] => 73 [65] => Array ( [$_65] => 0 ) [66] => Array ( [$_66] => 0 ) [71] => Array ( [$_71] => 0 ) [73] => Array ( [$_73] => 1 ) )
Array ( [0] => 65 [1] => 66 [65] => Array ( [$_65] => 0 ) [66] => Array ( [$_66] => 0 ) )
$ar=Array ( '0' => 65 , '1' => 66 , '65' => Array ( '$_65' => 0 ) , '66' => Array ( '$_66' => 0 ) ) ; foreach($ar as $v){ if(is_array($v)){ foreach($v as $kl=>$vl) eval("$kl=$vl;"); } } var_dump($_65,$_66); //int(0) int(0)