<?php
$arr=array
(
"01",
"02",
"01",
"02",
"03"
);
$rs=array();
foreach($arr as $v){
if (isset($rs[$v])) {
$rs[$v]++;
} else {
$rs[$v] = 1;
}
}
print_r($rs);
?>
标签:none