Reading List

PHP’s __call magic method and named arguments from David Peach RSS feed.

PHP’s __call magic method and named arguments

Whilst working on a little library recently, I discovered some interesting behavior with PHP’s __call magic method. Specifically around using named arguments in methods that are caught by the __call method. Given the following class: Calling a non-existing method without named parameters would result in the arguments being given to __call as an indexed array:… Continue reading PHP’s __call magic method and named arguments