Skip to content

Instantly share code, notes, and snippets.

@ruliarmando
Created May 15, 2013 09:51
Show Gist options
  • Save ruliarmando/5582856 to your computer and use it in GitHub Desktop.
Save ruliarmando/5582856 to your computer and use it in GitHub Desktop.
<?php
$items = array(100, 100, 20, 20, 30, 45, 45, 50);
echo "<pre>";
print_r(array_keys(array_count_values($items), 1));
echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment