1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-the-array-spread-syntax-to-pass-an-array-of-arguments-to-another-function.md
2022-01-07 13:58:01 +01:00

740 B
Raw Blame History

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-01 freekmurze
https://pbs.twimg.com/media/FGepj8mWQAUf2R_.jpg
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

Heres 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