Bug #1366: Problems with multidimensional arrays
| From: | winfried dot bantel at usa dot net | Date: | Sat, 01 May 1999 08:00:46 +0000 |
| Subject: | Bug #1366: Problems with multidimensional arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5310@lists.php.net to get a copy of this message | ||
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
!?!?!?!?
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.
Thank You. (You may answer in english or in german language).
Winfried Bantel
--
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