Re: list and (array) get_val
| From: | Philip Olson | Date: | Wed, 18 Dec 2002 16:30:29 +0000 |
| Subject: | Re: list and (array) get_val | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128741@lists.php.net to get a copy of this message | ||
Have another look here:
http://www.php.net/list
Note that the list construct only works
on numerical arrays and assumes 0-n. You
may want to use import_request_variables()
or extract() though.
Regards,
Philip Olson
On Wed, 18 Dec 2002, Ns_Andy wrote:
> a.php
>
> <?php
> list($a) = $_GET;
> print $a;
> ?>
>
> and I typed a.php?b=c
>
> I expected c would be printed, What the problems have I made?
> --
> Regards,
> Ns_Andy, ns_andy@yahoo.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>