[nycphp-talk] all functions parameters in an array?
Tom Melendez
tom at supertom.com
Fri Oct 14 14:21:20 EDT 2005
Hi Robyn,
This sounds like a job for func_get_args:
http://us3.php.net/func_get_args
Tom
http://www.liphp.org
robyn o wrote:
> Is there a php function to get all the parameters in a user function
> in an array?
>
> For example, I have several strings in a function, and I'd like to do
> the same thing to all of them before I deal with them individually:
>
> function my_function($a, $b, $c, $d){
> foreach ($array_of_parameters as $p){
> $p = trim($p);
> }
> }
>
> Thanks for your help.
> Robyn
>
>------------------------------------------------------------------------
>
>_______________________________________________
>New York PHP Talk Mailing List
>AMP Technology
>Supporting Apache, MySQL and PHP
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.nyphp.org
>
>
More information about the talk
mailing list