3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= Array("0" => Array("intTrackId" => 41, "intAverageRating" => 10, "bolNewRelease" => 0 , "dtDateAdded" => "2013-03-08 17:32:26") , "1" => Array("intTrackId" => 1 ,"intAverageRating" => 7 ,"bolNewRelease" => 0 ,"dtDateAdded" => "2013-03-08 18:54:35")); $b=Array("0" => Array("intTrackId" => 41, "intAverageRating" => 5.5000 ,"bolNewRelease" => 1, "dtDateAdded" => "2014-03-25T09:39:28Q") , "1" => Array("intTrackId" => 361 ,"intAverageRating" => 8.0000 ,"bolNewRelease" => "1" , "dtDateAdded" => "2014-03-25T09:39:28Q")) ; $res = array(); foreach($a as $key=>$values) { if($values["intTrackId"] == $b[$key]["intTrackId"]) { $res=""; break; } else { $res=$values; } } print_r($res);
Output for 4.3.0 - 7.1.0