note 89487 deleted from language.references.whatdo by danbrown
| From: | danbrown@php.net | Date: | Tue, 10 Mar 2009 18:53:59 +0000 |
| Subject: | note 89487 deleted from language.references.whatdo by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151696@lists.php.net to get a copy of this message | ||
Note Submitter: Dragan Simic
----
In reply to amp at gmx dot info 08-Jun-2007 05:59
What's enough is simply this:
$v1= 0 ;
$arrV = array(&$v1, &$v1);
foreach ($arrV as &$v) {
$v1++;
echo ($v . "\n");
}
what produces this output:
1
2
Tested with PHP 5.1.6