If I a value ID equals 1 and search an array I like to remove from the array itself where ID is 1 if found.
Array (
[0] => Array
(
[id] => 1
)
[1] => Array
(
[id] => 4
)
[2] => Array
(
[id] => 5
)
[3] => Array
(
[id] => 7
)
)
new array
Array (
[0] => Array
(
[id] => 4
)
[1] => Array
(
[id] => 5
)
[2] => Array
(
[id] => 7
)
)
I am using search_array, and I am assuming that because it is multidimensional it isn't finding it. Is there a way to search an array like above?