NYCPHP Meetup

NYPHP.org

[nycphp-talk] all functions parameters in an array?

robyn o robynover at gmail.com
Fri Oct 14 14:10:23 EDT 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20051014/a4b2433a/attachment.html>


More information about the talk mailing list