PHPize Online / SQLize Online

A A A
Share   Donate   Blog   Popular
Copy Format Clear
Copy
Copy Format Clear
<?php $arr1 = [ 33 => [ 0 => 30319, 1 => 30318, 2 => 30315, 3 => 50209 ] ]; $arr2 = [ 33 => [ 0 => 50209, 1 => 50149, 2 => 30315, ], 32 => [ 0 => 12345 ] ]; $keys1 = array_keys($arr1); $keys2 = array_keys($arr2); $res = array_diff($arr2, $arr1); print_r($res);
Show:  
Copy