MongoId::getHostname

Gets the hostname being used for this machine's ids

Hinweis:

This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension.

Beschreibung

public static string MongoId::getHostname ( void )

This returns the hostname MongoId is using to generate unique ids. This should be the same value gethostname returns.

It is identical to the function:

<?php

public static function getHostname() {
    return 
gethostname();
}

?>

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the hostname.