SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $array1 = 'a:16:{i:0;s:3:"tem";i:1;s:3:"tem";i:2;s:3:"tem";i:3;s:3:"tem";i:4;s:3:"tem";i:5;s:3:"tem";i:6;s:3:"tem";i:7;s:3:"tem";i:8;s:3:"tem";i:9;s:3:"tem";i:10;s:3:"tem";i:11;s:3:"tem";i:12;s:3:"tem";i:13;s:3:"tem";i:14;s:3:"tem";i:15;s:3:"tem";}';
  2.  
  3. $array2 = 'a:16:{i:0;s:3:"nao";i:1;s:3:"nao";i:2;s:3:"ava";i:3;s:3:"ava";i:4;s:3:"tem";i:5;s:3:"tem";i:6;s:3:"ava";i:7;s:3:"tem";i:8;s:3:"tem";i:9;s:3:"tem";i:10;s:3:"nao";i:11;s:3:"tem";i:12;s:3:"tem";i:13;s:3:"ava";i:14;s:3:"tem";i:15;s:3:"nao";}';
  4.      
  5. $array1 = unserialize($array1);
  6. $array2 = unserialize($array2);
  7.  
  8. print_r($array1);
  9. print_r($array2);
  10.      
  11. $result = array_diff($array1, $array2);
  12. print_r($result);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top