php-src/Zend/tests/varvars_by_ref.phpt
2014-10-06 18:56:23 +02:00

18 lines
224 B
PHP

--TEST--
Accessing variable variables using referenced names
--FILE--
<?php
$name = 'var';
$ref =& $name;
$$name = 42;
var_dump(isset($$name));
unset($$name);
var_dump(isset($$name));
?>
--EXPECT--
bool(true)
bool(false)