Arquivos
hhvm/hphp/test/vm/IterInitM.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

16 linhas
229 B
PHP

<?php
$a = array(0, 1, array(2, 3), 4);
foreach ($a as &$v) {
print("v: $v\n");
$v = "v";
}
var_dump($a);
$a = array(0, 1, array(2, 3), 4);
foreach ($a as $k => &$v) {
print("k: $k, v: $v\n");
$v = "v";
}
var_dump($a);