xref: /PHP-7.3/Zend/tests/assign_to_var_002.phpt (revision 782352c5)
1--TEST--
2complex cases of variable assignment - 002
3--FILE--
4<?php
5
6$var = "intergalactic";
7$var1 = &$var;
8$var = $var[5];
9
10var_dump($var);
11var_dump($var1);
12
13echo "Done\n";
14?>
15--EXPECT--
16string(1) "g"
17string(1) "g"
18Done
19