I have this array returned from a query:
Array
(
[0] => Array
(
[name] => 'Kathy'
[gender] => 'female'
[age] => 32
)
[1] => Array
(
[name] => 'Steve'
[gender] => 'male'
[age] => 19
)
[2] => Array
(
[name] => 'Joe'
[gender] => 'male'
[age] => 36
)
[3] => Array
(
[name] => 'Lynn'
[gender] => 'female'
[age] => 45
)
)
I want to split this into two arrays: one containing only the females, and one containing only the males:
Is that possible to do with array functions, or will I have to make two queries (something I really don't want to do!)