From: [EMAIL PROTECTED]
Operating system: all
PHP version: 4.0.4pl1
PHP Bug Type: Documentation problem
Bug description: typo in foreach manual page
>From the foreach manual page:
--------
/* foreach example 2: value (with key printed for illustration) */
$a = array (1, 2, 3, 17);
$i = 0; /* for illustrative purposes only */
foreach($a as $v) {
print "\$a[$i] => $k.\n";
}
---------
that print statement should be
print "\$a[$i] => $v.\n";
--
Edit Bug report at: http://bugs.php.net/?id=9668&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]