Skip to content

Instantly share code, notes, and snippets.

@ruliarmando
Created May 15, 2013 09:52
Show Gist options
  • Save ruliarmando/5582859 to your computer and use it in GitHub Desktop.
Save ruliarmando/5582859 to your computer and use it in GitHub Desktop.
<?php
$data1 = array(1,2,3);
$data2 = array(1,2,3,4,5,6,7,8,9,10);
$diff = array_diff($data2, $data1);
echo "<pre>";
print_r($diff);
echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment