Re: Anything like Perl's @_ in PHP?
| From: | _lallous | Date: | Mon, 15 Oct 2001 07:50:47 +0000 |
| Subject: | Re: Anything like Perl's @_ in PHP? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71073@lists.php.net to get a copy of this message | ||
you could have used arrays too,
function test($params)
{
while (list($key, $value) = each($params))
{
if (is_string($params[$key])) ....;
if (is_float($params[$key])) ....;
}
}
test(array('string', 1234, 111.1111));
"Dana Holt" <danah@home.com> wrote in message
news:000301c153ba$f4d31060$6400a8c0@MORPHEUS...
>
> There it is, looks like I missed that one.
>
> You know what's ironic? I'm wearing a shirt that has "RTFM" in big letter
> across the front! DOH!
>
> Well, it's pretty late here, early, whatever you like to call it. Maybe I
> can blame it on that.
>
> Thanks.
>
>
> -----Original Message-----
> From: Jason Brooke [mailto:jason@qgl.org]
> Sent: Saturday, October 13, 2001 2:36 AM
> To: Dana Holt; PHP Mailing List (E-mail)
> Subject: Re: [PHP] Anything like Perl's @_ in PHP?
>
> > Is there an easy way to read in all the parameters passed to a function
in
> > the order they were passed? Just like @_ in Perl?
> >
> > I am building a custom POST header and that sure would make my life
> easier!
> >
> > Thanks in advance.
> >
> > Dana
>
>
> Tried the manual? :)
>
> http://www.php.net/manual/en/ref.funchand.php
>
> jason
>
>
>
>