php-src/Zend/tests/assign_to_var_001.phpt
2018-10-14 19:45:12 +02:00

19 lines
203 B
PHP

--TEST--
complex cases of variable assignment - 001
--FILE--
<?php
$var = array(1,2,3);
$var1 = &$var;
$var = $var[1];
var_dump($var);
var_dump($var1);
echo "Done\n";
?>
--EXPECT--
int(2)
int(2)
Done