On Wed, May 19, 2010 at 8:43 AM, Christian Schneider
<cschn...@cschneid.com>wrote:

> If you want to have multiple dynamic arguments to pass on like this I'd
> suggest you use one associative array as parameter instead.
>
> Like
>        function a($p = array()) { ... }
>        function aa($p = array()) { a($p); }
>        aa(array("foo" => 42, "bar" => 17));
> with the additional benefit of having named (and extensible) parameters
> as an added bonus.
>
> - Chris
>

array cant be type hinting defined. i will need to do some extra work
checking type in the reciever function.




-- 
Mathias Grimm

Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756

http://mathiasgrimm.com.br
http://phpempregos.com.br

Reply via email to