php-src/Zend/tests/assign_to_var_002.phpt
2018-10-14 12:07:20 -03:00

19 lines
220 B
PHP

--TEST--
complex cases of variable assignment - 002
--FILE--
<?php
$var = "intergalactic";
$var1 = &$var;
$var = $var[5];
var_dump($var);
var_dump($var1);
echo "Done\n";
?>
--EXPECT--
string(1) "g"
string(1) "g"
Done