I have this array :
Array
(
[0] => Array
(
[nid] => 1
[language] => EN
[uid] => 1
[tid] => page
[title] => Welcome
[body] =>
Comming Soon.
[date_post] => 2014-02-18 08:27:56
[enable] => 1
)
[1] => Array
(
[nid] => 2
[language] => EN
[uid] => 1
[tid] => page
[title] => Our Stuff
[body] =>
Comming Soon.
[date_post] => 2014-02-18 08:27:56
[enable] => 1
)
[2] => Array
(
[nid] => 3
[language] => EN
[uid] => 1
[tid] => page
[title] => Partners
[body] =>
Comming Soon.
[date_post] => 2014-02-18 08:27:56
[enable] => 1
)
And so on... What i would like to do i unset the element how has the title Partners
for example, so I tried this :
unset($pages[array_search('Partners',$pages)]);
But it remove the first element from the table, so how can i unset the specific element ?
Thanks