Re: [PHP4BETA] Functions with variable # of arguments?

From: Date: Fri, 24 Mar 2000 23:19:52 +0000
Subject: Re: [PHP4BETA] Functions with variable # of arguments?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12577@lists.php.net to get a copy of this message
Peter Kovacs writes: > Is it possible to declare a function as taking a variable (and > undetermined) number of archumets similar to the ... syntax in C? > > Thanks, > Peter > > -------------------------------------------------- > Peter D. Kovacs KnowPost.com LLC > Lead Engineer peter@knowpost.com > -------------------------------------------------- Yup--check out the 'Function arguments' section of the manual: http://www.php.net/manual/functions.arguments.php3 There is no special syntax; there are examples in the function docs for func_num_args(), func_get_arg(), and func_get_args(). Cheers, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.version4 (#12577) next »