mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
18 lines
224 B
PHP
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)
|