How to unset a row from a subarray if the row has a qualifying column value
I have an array in the following structure
Array (
[members] => Array (
[0] => Array ( [nr] => 2 [email] => email1 )
[1] => Array ( [nr] => 6 [email] => email2 )
[2] => Array ( [nr] => 3 [email] => email3 )
)
[title] => List members
)
I want to delete items from the members subarray if the nr value equals 3. How should I do this?