Example
A gethostname() example:
html
<?php
echo gethostname();
?>
Definition and Usage
The gethostname() function returns the host name for the local machine.
Syntax
text
gethostname()
Technical Details
| Return Value: | The host name on success. FALSE on failure |
|---|---|
| PHP Version: | 5.3+ |