xref: /PHP-5.3/Zend/tests/assign_to_var_001.phpt (revision 6204a10e)
1--TEST--
2complex cases of variable assignment - 001
3--FILE--
4<?php
5
6$var = array(1,2,3);
7$var1 = &$var;
8$var = $var[1];
9
10var_dump($var);
11var_dump($var1);
12
13echo "Done\n";
14?>
15--EXPECTF--
16int(2)
17int(2)
18Done
19