PHP gethostname() 函数
定义和用法
gethostname() 函数返回本地机器的主机名。
语法
gethostname()
技术细节
返回值 | 成功时为主机名。失败时为 FALSE |
---|---|
PHP 版本 | 5.3+ |
❮ PHP 网络参考
gethostname() 函数返回本地机器的主机名。
gethostname()
返回值 | 成功时为主机名。失败时为 FALSE |
---|---|
PHP 版本 | 5.3+ |
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com