Bug #16131 Updated: For Loop not working (honestly)
| From: | philip@php.net | Date: | Mon, 18 Mar 2002 03:53:11 +0000 |
| Subject: | Bug #16131 Updated: For Loop not working (honestly) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2725@lists.php.net to get a copy of this message | ||
ID: 16131
Updated by: philip@php.net
Reported By: paul79@optonline.net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.5
PHP Version: 4.1.2
New Comment:
It's okay :)
Previous Comments:
------------------------------------------------------------------------
[2002-03-17 21:52:02] paul79@optonline.net
This is bogus. Sorry, and thanks you
------------------------------------------------------------------------
[2002-03-17 21:43:34] paul79@optonline.net
Please note the following code, and keep the following in mind.
$disk_$x_name is an array posted from a previous page.
(ex. <input name='disk_0_name[]'><input name='disk_0_name[]'>)
The same thing goes for $total_disks.
This particular loop only outputs "0 => 3" one time, and stops. Why?
The value of $num_part is 3. It should at least print it that many of
times? Bug?
<?
for($x=0;$x<count($total_disks);$x++)
{
eval('$num_part = count($disk_' . $x . '_name);');
for($y=0;$y<count($num_part);$y++)
{
print $y . " => " . $num_part . "<br>";
}
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16131&edit=1