我有一个这样的数组,其中包含年龄和该年龄的人数:
[0] => Array ( [age] => 25 [person_count] => 12 )
[1] => Array ( [age] => 26 [person_count] => 22 )
) ```
I cannot figure out how to search for a person count where age = something.
E.g. I have the age in a variable and need to return the matching person count.
$myage = "25";
$person_count = ??? (should return 12 in this case).