mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
23 lines
310 B
Plaintext
23 lines
310 B
Plaintext
|
--TEST--
|
||
|
Testing dynamic calls using variable variables with curly syntax
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$a = 'b';
|
||
|
$b = 'c';
|
||
|
$c = 'strtoupper';
|
||
|
|
||
|
var_dump(${${$a}}('foo') == 'FOO');
|
||
|
|
||
|
$a = 'b';
|
||
|
$b = 'c';
|
||
|
$c = 'strtoupper';
|
||
|
$strtoupper = 'strtolower';
|
||
|
|
||
|
var_dump(${${++$a}}('FOO') == 'foo');
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|
||
|
bool(true)
|