Re: [PHP-DEV] Named parameters

2010-10-16 Thread Olivier Sirven
On 2010-10-16 11:55:40, Reindl Harald wrote: > What you can do to make your code readable is the following > > function stuff($required1, $required2, /**$options*/array()) > { > extract($options); > } Huh? This code cannot even compile?! What are you talking about? -- Olivier -- PHP Internal

[PHP-DEV] [SPL] ArrayObject::offsetExists

2007-02-09 Thread Olivier Sirven
Hi, I am not sure whether I should post here or into php-general so feel free to bug me away ;) Anyway I have found a difference with ArrayObject::offsetExists between php 5.2.0 and php 5.2.1. With 5.2.0 ArrayObject::offsetExists will return "true" if the offsetExists whether its value is empty