Here is print_r output of my array:
Array ( [0] => stdClass Object ( [itemId] => 560639000019 [name] => Item no1 [code] =>
try this
foreach($array AS $key=>$object){ if($object['id'] == 4){ $key_in_array = $key; } } // chop it from the original array array_slice($array, $key_in_array, 1);