PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $test = array( array( "supplier" => "TEST DEPO", "rolanID" => array(123, 234, 456), "itemCount" => 3 ), array( "supplier" => "ANOTHER DEPO", "rolanID" => array(123, 786, 345), "itemCount" => 3 ), array( "supplier" => "ROLAN", "rolanID" => array(123, 234), "itemCount" => 2 ), ); $test[] = (fn($a, $b) => array_diff($a['rolanID'], $b['rolanID']) ? (array_diff($b['rolanID'], $a['rolanID']) ? 1 : 0) : 0); var_export(array_udiff($test));
Show:  
Copy Clear