|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-30 12:04 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 01:00:02 2025 UTC |
So... If I have a program like this ----- clip here ----- <?php $x[0][0]=1; $x[0][1]=1; $x[1][0]=1; $x[1][1]=1; while($y=each($x)) echo "'$y[0]' - '$y[1]'<br>\n"; ?> ----- clip here ----- It works correctly and prints '0' - 'Array' '1' - 'Array' But if I have HTML-form like this <form action=foo.phtml> <input type=checkbox name=x[0][0]> <input type=checkbox name=x[0][1]> <input type=checkbox name=x[1][0]> <input type=checkbox name=x[1][1]> <input type=submit> </form> And foo.phtml is <?php while($y=each($x)) echo "'$y[0]' - '$y[1]'"; ?> This works different way and it prints '0][0' - '1' '0][1' - '1' '1][0' - '1' '1][1' - '1' This is tested with linux and solaris apache+php 3.0.6/7/9 -- Ari