gethostname

Gets the host name

&reftitle.description; ``string``false```gethostname`

`gethostname` gets the standard host name for the local machine.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns a string with the hostname on success, otherwise &false; is returned.

&reftitle.examples;

### A simple `gethostname` example

    <?php
    echo gethostname(); // may output e.g,: sandie
    ?>

&reftitle.seealso;

- `gethostbyname`
- `gethostbyaddr`
- `php_uname`