mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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)
|