3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rows = array( [ 'UKM_Make' => 'Honda', 'UKM_Model' => 'XL', 'UKM_CCM ' => 600, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Honda', 'UKM_Model' => 'CR', 'UKM_CCM ' => 800, 'Year' => 2004, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Ford', 'UKM_Model' => 'Focus', 'UKM_CCM ' => 900, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Ford', // Dupe 'UKM_Model' => 'Focus', 'UKM_CCM ' => 900, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ] ); $rows = array_map('unserialize', array_unique(array_map('serialize', $rows))); foreach(array_filter($rows, function($data) { return count(array_diff(explode(' ', 'Honda XL'), $data)) == 0; }) as $data) { var_dump($data); }
based on OqHfl
Output for 5.6.38 - 7.3.0rc3
array(6) { ["UKM_Make"]=> string(5) "Honda" ["UKM_Model"]=> string(2) "XL" ["UKM_CCM "]=> int(600) ["Year"]=> int(1999) ["UKM_Submodel"]=> string(1) "V" ["UKM_StreetName"]=> string(7) "Transap" }