PHP 4.0 Bug #9668 Updated: typo in foreach manual page
| From: | jmcastagnetto@php.net | Date: | Sat, 17 Mar 2001 06:51:19 +0000 |
| Subject: | PHP 4.0 Bug #9668 Updated: typo in foreach manual page | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49205@lists.php.net to get a copy of this message | ||
ID: 9668
Updated by: jmcastagnetto
Reported By: max@flipstorm.net
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
This is fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2001-03-10 04:15:52] max@flipstorm.net
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";
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9668&edit=2