You can use the array spread syntax to pass an array of arguments to another function
- ·
- Telegram
- ·
- Newsletter
🔥 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.
#php