我有一个像这样的数组:
$resellers = Array
(
[40] => Array
(
[state] => AB
[city] => Calgary
)
[185] => Array
(
[state] => AB
[city] => Calgary
)
[141] => Array
(
[state] => AB
[city] => Calgary
)
[41] => Array
(
[state] => AB
[city] => Grande Prairie
)
[68] => Array
(
[state] => BC
[city] => Burnaby
)
[51] => Array
(
[state] => BC
[city] => Campbell River
)
[61] => Array
(
[state] => BC
[city] => Kamloops
)
)
我想知道是否有一种简单的方法可以计算“阿尔伯塔”(即 4)和 BC(即 3)的值。