1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/you-can-use-the-spread-operator-to-merge-arrays-just-like-in-javascript.md
2021-12-03 18:31:27 +01:00

498 B

title tweet_id thread_slug author_username images created_at slug
You can use the spread operator to merge arrays, just like in JavaScript 1466810186002096137 weekly-thread-2021-48 mmartin_joo
https://pbs.twimg.com/media/FFS1obRWQAgZFTB.png
2021-12-03T16:42:55+00:00 you-can-use-the-spread-operator-to-merge-arrays-just-like-in-javascript

A quick reminder about a not-so-often used #PHP feature.

We have the spread operator, and it works just like the one in JavaScript.