<?php $massiv[]= one; foreach ($massiv as $key => $val) { $massiv[] = two; echo $val; } ?>
Standard input is empty
onearray(2) {
[0]=>
string(3) "one"
[1]=>
string(3) "two"
}
PHP Notice: Use of undefined constant one - assumed 'one' in /home/zkrGsc/prog.php on line 3 PHP Notice: Use of undefined constant two - assumed 'two' in /home/zkrGsc/prog.php on line 8