标签:span values title count 计数 class tle value 统计
<?php
$arr = array(6,8,8,2,3,2,‘a‘,‘a‘,3);
$res = array_count_values($arr);
var_dump($res);
打印结果:array(5) { [6]=> int(1) [8]=> int(2) [2]=> int(2) [3]=> int(2) ["a"]=> int(2) }
标签:span values title count 计数 class tle value 统计
原文地址:https://www.cnblogs.com/clubs/p/8973318.html