mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
23 lines
310 B
PHP
23 lines
310 B
PHP
--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)
|