mirror of
https://github.com/php/php-src.git
synced 2024-12-03 14:54:40 +08:00
19 lines
205 B
PHP
19 lines
205 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";
|
|
?>
|
|
--EXPECTF--
|
|
int(2)
|
|
int(2)
|
|
Done
|