Skip to content

Instantly share code, notes, and snippets.

@evgv
Created August 16, 2016 13:05
Show Gist options
  • Save evgv/650e6480d34520c036895b8629edece6 to your computer and use it in GitHub Desktop.
Save evgv/650e6480d34520c036895b8629edece6 to your computer and use it in GitHub Desktop.
PHP. Unique merge of two array with sort.
array_unique(array_merge($array1,$array2), SORT_REGULAR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment