php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1366 Problems with multidimensional arrays
Submitted: 1999-05-01 04:00 UTC Modified: 1999-05-11 08:46 UTC
From: winfried dot bantel at usa dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: RedHat 5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: winfried dot bantel at usa dot net
New email:
PHP Version: OS:

 

 [1999-05-01 04:00 UTC] winfried dot bantel at usa dot net
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-11 08:46 UTC] sas at cvs dot php dot net
Multidimensional arrays are not supported as GET/POST input parameters.

Running your script with the upcoming PHP 3.0.8 did not yield the mentioned behaviour.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC