mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
13 lines
No EOL
498 B
Markdown
13 lines
No EOL
498 B
Markdown
---
|
|
title: 'You can use the spread operator to merge arrays, just like in JavaScript'
|
|
tweet_id: '1466810186002096137'
|
|
thread_slug: weekly-thread-2021-48
|
|
author_username: mmartin_joo
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FFS1obRWQAgZFTB.png'
|
|
created_at: 2021-12-03T16:42:55+00:00
|
|
slug: 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. |