note 105154 deleted from control-structures.foreach by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Aug 2011 13:50:15 +0000 |
| Subject: | note 105154 deleted from control-structures.foreach by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182056@lists.php.net to get a copy of this message | ||
Note Submitter: dong tran
----
<?php
$arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
$value = $value * 2;
}
foreach ($arr as $value) {
echo $value;
}
?>
why the screen is 2466
i think it's 2468?