mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
741 B
741 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can use the array spread syntax to pass an array of arguments to another function | 1471864644562305025 | weekly-thread-2021-50 | freekmurze |
|
2021-12-17T15:27:31+00:00 | you-can-use-the-array-spread-syntax-to-pass-an-array-of-arguments-to-another-function |
🔥 You can use array spreading to pass an array as arguments to another function. #php
Here’s a self-contained example where we spread the array output of sys_getloadavg. That function returns an array with three elements.
70f387d516/src/CpuLoad.php (L17)
#php