Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Compare all values by a json_encode
- $diff = array_diff(array_map('json_encode', $array1), array_map('json_encode', $array2));
- // Json decode the result
- $diff = array_map('json_decode', $diff);
Add Comment
Please, Sign In to add comment