时间:2021-07-01 10:21:17 帮助过:9人阅读
$a = array( array('mode' => ' 200 47 '), array('mode' => ' 200 47 '), array('mode' => ' 404 47 '), array('mode' => ' 404 47 '), array('mode' => ' 200 47 '),);foreach($a as $t) { @$res[intval($t['mode'])]++;}print_r($res);
Array( [200] => 3 [404] => 2)
$arr = array(array('mode'=>'404 47'),array('mode'=>'200 47'),array('mode'=>'404 47'));$i = 0;$x = 0;$y = 0;while($i
我初学者,
$a = array( array('mode' => ' 200 47 '), array('mode' => ' 200 47 '), array('mode' => ' 404 47 '), array('mode' => ' 404 47 '), array('mode' => ' 200 47 '),);foreach($a as $t) { @$res[intval($t['mode'])]++;}print_r($res);Array( [200] => 3 [404] => 2)谢谢大神!!