文档:https://www.php.net/manual/zh/migration70.incompatible.php
间接调用的表达式的新旧解析顺序:
<?php
function f() {
// Valid in PHP 5 only.
global $$foo->bar;
// Valid in PHP 5 and 7.
global ${$foo->bar};
}
?>
文档:https://www.php.net/manual/zh/migration70.incompatible.php
间接调用的表达式的新旧解析顺序:
<?php
function f() {
// Valid in PHP 5 only.
global $$foo->bar;
// Valid in PHP 5 and 7.
global ${$foo->bar};
}
?>