PHP 4.0 Bug #9668: typo in foreach manual page

From: Date: Sat, 10 Mar 2001 09:15:52 +0000
Subject: PHP 4.0 Bug #9668: typo in foreach manual page
Groups: php.dev 
Request: Send a blank email to php-dev+get-48573@lists.php.net to get a copy of this message
From: max@flipstorm.net 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

« previous php.dev (#48573) next »