xref: /PHP-8.1/Zend/tests/isset_001.phpt (revision f8d79582)
1--TEST--
2Testing isset and unset with variable variables
3--FILE--
4<?php
5
6print "- isset ---\n";
7
8$var_name = 'unexisting';
9
10if (isset($$var_name)) {
11    print "error\n";
12}
13
14$test = 'var_name';
15
16if (isset($$$test)) {
17    print "error\n";
18}
19
20print "- unset ---\n";
21
22unset($$var_name);
23
24unset($$$test);
25
26print "done\n";
27
28?>
29--EXPECT--
30- isset ---
31- unset ---
32done
33