Guest User

Untitled

a guest
Apr 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. <?php
  2.  
  3. // Compare all values by a json_encode
  4. $diff = array_diff(array_map('json_encode', $array1), array_map('json_encode', $array2));
  5.  
  6. // Json decode the result
  7. $diff = array_map('json_decode', $diff);
Add Comment
Please, Sign In to add comment