I need to delete from a multi dimensional array.
My array looks as follows
Array(
0 => Array(
0 => "My Album",
1 => "Testphoto2011-222231.jpg"
),
1 => Array(
0 => "Test Album",
1 => "12345.jpg"
)
);
What I want to do is search the value "My Album" and then delete the entire array from the array.
So for example the values "My Album" & "Testphoto2011-222231.jpg" belong to array[0]. When found I want to delete array[0].
Can anyone help me on this?