Here is print_r output of my array:
Array ( [0] => stdClass Object ( [itemId] => 560639000019 [name] => Item no1 [code] =>
foreach( $arr as $k=>&$a) { if( $a['id'] == 4 ) unset($arr[$k]); }