Re: list and (array) get_val
| From: | Bastian Vogt | Date: | Wed, 18 Dec 2002 15:41:14 +0000 |
| Subject: | Re: list and (array) get_val | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128732@lists.php.net to get a copy of this message | ||
As you can read here: http://www.php.net/manual/en/function.list.php
Note: list() only works on numerical arrays and assumes the numerical
indices start at 0.
"b" is not numerical, I think ;-)
HTH,
Bastian
> 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