$_SERVER

服务器创建的项目信息数组

echo $_SERVER['SERVER_NAME'];//输出服务器名称:localhost

原文地址:https://www.cnblogs.com/772933011qq/p/6008836.html