delucaspinto

CHECK DUPLICATED

Mar 2nd, 2021
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.12 KB | None | 0 0
  1. function array_has_dupes($array) {
  2.    // streamline per @Felix
  3.    return count($array) !== count(array_unique($array));
  4. }
Advertisement
Add Comment
Please, Sign In to add comment