-
-
Save alherd-by/8a142945b011f44b518950ba668323b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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