note 99493 deleted from language.references.whatdo by danbrown
| From: | danbrown@php.net | Date: | Fri, 20 Aug 2010 13:21:41 +0000 |
| Subject: | note 99493 deleted from language.references.whatdo by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171885@lists.php.net to get a copy of this message | ||
Note Submitter: northhero at gmail dot com
----
replay to amp at gmx dot info
If we change the code to below, it could yield what we want.
$v1=0;
$arrV=array(&$v1,&$v1);
foreach ($arrV as &$v)
{
$v1++;
echo $v."\n";
}
yields
1
2