php在函数外声明global变量有什么用?
php在函数外声明global变量有什么用?
我看wordpress的wp-settings.php文件中有这么一段:
/*
* These can't be directly globalized in version.php. When updating,
* we're including version.php from another install and don't want
* these values to be overridden if already set.
*/
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
require( ABSPATH . WPINC . '/version.php' );
已抢64997个
抢已抢27621个
抢已抢14998个
抢已抢7455个
抢已抢9404个
抢已抢19023个
抢