Does foreach's array_expression get referenced in each loop?
from:

Considering the following code:

$ten_element_array = array( 'one' => '1', 'two' => '2', 'three' => '3', 'four' => '4', 'five' => '5', 'six' => '6', 'seven' => '7', 'eight' => '8', 'nine' => '9', 'ten' => '10');function some_func(){ foreach ($GLOBALS['ten_element_array'] as $key => &$value) { if ($key == 'seven') { // do something } else { // do some other thing... PHP:

Does foreach's array_expression get referenced in each loop?

Poster :
Ian08