gethostname

Gets the host name

Syntax

gethostname ( void ) : string

Return

Returns a string with the hostname on success, otherwise FALSE is returned.

Examples

<?

$return = gethostname();

echo $return;

?>
sandie

PHP

Home Menu