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:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to