Re: variable argument list



Am Tue, 31 May 2005 22:46:05 +0300 schrieb maxlego:

> Hi
>
> void f(...)
> { }
>
> f(1, 2, 3, "a", "b");
>
> This is piece of C code. How can I do something similar (ellipsis in
> function argument list) in PHP?

Look at this function:
func_get_args()

--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------

.



Relevant Pages

  • variable argument list
    ... void f ... How can I do something similar (ellipsis in ... function argument list) in PHP? ...
    (alt.php)
  • Re: [PHP] Forwarding $_POST[]...
    ... Jim, perhaps I'm missing something that you're hinting at, ... represented by the ellipsis, but why redefine the superglobal to a ...
    (php.general)