Re: Bug #1366: Problems with multidimensional arrays
| From: | Zeev Suraski | Date: | Sat, 01 May 1999 13:07:50 +0000 |
| Subject: | Re: Bug #1366: Problems with multidimensional arrays | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5313@lists.php.net to get a copy of this message | ||
On 1 May 1999 winfried.bantel@usa.net wrote:
> From: winfried.bantel@usa.net
> Operating system: RedHat 5.2
> PHP version: 3.0.7
> PHP Bug Type: Other
> Bug description: Problems with multidimensional arrays
>
> Code like
> <?
> $data[1][1]=6;
> $data[1][2]=7;
> $data[2][1]=8;
> $data[2][2]=10;
> while (liste($key,$val)=each($data))
> echo "<BR> $key"
> ?>
>
> produces output like
> 1][1
> 1][2
> 2][1
> 2][2
>
> !?!?!?!?
Hmm, looks like your scanner got built completely wrong. Not that I'm
sure how it happened, but if you're absolutely sure you're running PHP
3.x and that's how it behaves for you, the compilation got fucked up at
some point or another.
> Another problem concerning multidimensional arrays:
>
> I send HTTP-Formdata in an array like
>
> <INPUT TYPE=TEXT NAME='data[name]'>
> <INPUT TYPE=TEXT NAME='data[street]'>
> <INPUT TYPE=TEXT NAME='data[city]'>
>
> and get all data in my array $data. How can i use multiple-select-lists?
> <SELECT NAME='data[hobbies][]'>
> <OPTION VALUE='computer'>
> ...
> </SELECT>
> does not seem to work. I don't find any doc about multidimensional arrays.
There aren't any. There's no support for multidimensional arrays in
GET/POST/Cookies.
Zeev
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net