3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= Array("0" => Array("intTrackId" => 361, "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")) ; foreach($a as $key=>$values) { if($values["intTrackId"] == $b[$key]["intTrackId"]) { unset ($b[$key]); } } print_r($b);
Output for 4.3.0 - 7.1.0
Array ( [0] => Array ( [intTrackId] => 41 [intAverageRating] => 5.5 [bolNewRelease] => 1 [dtDateAdded] => 2014-03-25T09:39:28Q ) [1] => Array ( [intTrackId] => 361 [intAverageRating] => 8 [bolNewRelease] => 1 [dtDateAdded] => 2014-03-25T09:39:28Q ) )