我正在尝试通过 Key-gender 和 Key-rname 从两个键-> 值过滤器中的以下关联数组中计数,请参见下文...
<pre>
Array
(
[0] => Array
(
[fname] => jone
[lname] => jani
[gender] => m
[rname] => N
)
[1] => Array
(
[fname] => jani
[lname] => jone
[gender] => m
[rname] => N
)
[2] => Array
(
[fname] => sara
[lname] => bulbula
[gender] => w
[rname] => D
)
[3] => Array
(
[fname] => hani
[lname] => hanu
[gender] => w
[rname] => P
)
[4] => Array
(
[fname] => ttttttt
[lname] => sssssss
[gender] => m
[rname] => C
)
)
</pre>
我想要的结果如下..
重新命名性别 兆瓦 氮2 0 0 1 0 1 1 0 总计 3 2
请帮忙?