note 81834 deleted from control-structures.foreach by danbrown
| From: | danbrown@php.net | Date: | Tue, 28 Apr 2009 13:02:46 +0000 |
| Subject: | note 81834 deleted from control-structures.foreach by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153902@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at metalaxe dot com
----
In response to marian at devourmedia dot com 28-Feb-2008 05:34:
That's why you use reference modifier on the value:
foreach($t as $var=> &$val)
$val = 'K';