The spread syntax understands named parameters and correctly assigns array values to them

The spread syntax understands named parameters and correctly assigns array values to them

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! 💪

We're writing a book, you can get it for free here.