当我想在使用时使用在函数外声明的变量时,是否有最佳实践/建议:
global $myVar
$GLOBALS['myVar']
谢谢.
php variables global function
function ×1
global ×1
php ×1
variables ×1