Re: [PHP4BETA] Varargs user function?

From: Date: Tue, 21 Sep 1999 07:01:47 +0000
Subject: Re: [PHP4BETA] Varargs user function?
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-4725@lists.php.net to get a copy of this message
Jakub Skopal wrote: > and call it like: blah("one", "two", array("three", > "four", > "five")); ? Because I can already do this and it sucks, supportwise. page_open() in PHPLIB is a varargs function, and many people forget to write the array() which is currently needed for the varargs emulation. The programmatic interface suggested by Zeev is sufficient and complete to write real varargs functions, so I don't complain. I just added a request for access to the function parameter hash and the local variable hash using pseudo-variables like "$GLOBALS[]", because I think it is so elegant. But this is really just sugar. Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

« previous php.version4 (#4725) next »