Re: [PHP4BETA] Varargs user function?

From: Date: Mon, 20 Sep 1999 13:05:08 +0000
Subject: Re: [PHP4BETA] Varargs user function?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4665@lists.php.net to get a copy of this message
At 14:01 20-9-99 , Kristian Köhntopp wrote:
I suppose there is no way that we get a more elegant way to write varargs functions in Zend/PHP4? Perhaps by declaring them in a special way function blah(varargs $a) { /* access $a as an array */ }
Got my vote... :)
/* Call them as a function with a variable number of * args that is automatically transformed into an * array within the function? * */ blah($c, $d, 1, 2, 3); blah($x, $z, $q); or by some other kind of magic?
- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Practice makes perfect, but if nobody's perfect, why practice? Wico de Leeuw "Melt_Down", (wico@cnh.nl) ICQ - 33093128 (Web) Programmer / System Administrator

« previous php.version4 (#4665) next »