Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Last active August 29, 2015 14:09
Show Gist options
  • Save khoand0000/955c2dbe1012e807659d to your computer and use it in GitHub Desktop.
Save khoand0000/955c2dbe1012e807659d to your computer and use it in GitHub Desktop.
php
// use + operator when plus 2 array instead of array_merge because array_merge re-index
['' => ''] + [0, 1, 2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment