mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
19 lines
222 B
PHP
19 lines
222 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";
|
|
?>
|
|
--EXPECTF--
|
|
string(1) "g"
|
|
string(1) "g"
|
|
Done
|