The spread syntax understands named parameters and correctly assigns array values to them
- ·
- Telegram
- ·
- Newsletter
Today I learned that PHP will insert callback parameters in the order of their defined name, when spreading an array of args with string keys, allowing you to place them in any position in the callback. Super cool! 💪