php-src/Zend/tests/assign_to_var_004.phpt
2008-03-11 10:40:37 +00:00

23 lines
282 B
PHP

--TEST--
complex cases of variable assignment - 004
--FILE--
<?php
$var = "intergalactic";
$var1 = "space";
$var2 = &$var1;
$var = $var2;
var_dump($var);
var_dump($var1);
var_dump($var2);
echo "Done\n";
?>
--EXPECTF--
string(5) "space"
string(5) "space"
string(5) "space"
Done