Re: [SUGGEST] - passthru

From: Date: Wed, 19 May 2010 11:57:18 +0000
Subject: Re: [SUGGEST] - passthru
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-48348@lists.php.net to get a copy of this message
On Wed, May 19, 2010 at 8:43 AM, Christian Schneider <cschneid@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

« previous php.internals (#48348) next »