Skip to content

Instantly share code, notes, and snippets.

@alherd-by
Created September 28, 2017 18:37
Show Gist options
  • Save alherd-by/8a142945b011f44b518950ba668323b3 to your computer and use it in GitHub Desktop.
Save alherd-by/8a142945b011f44b518950ba668323b3 to your computer and use it in GitHub Desktop.
//Insta-perf-improvement for any #PHP codebase:
//replace `
foreach ($b as $a) { $c = array_merge($c, $a) }
// with
array_merge($c, [], ...$b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment