(PECL mongo >= 1.0.8)

MongoId::getHostnameGets the hostname being used for this machine's ids


public static MongoId::getHostname ( void ) : string

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:


public static function getHostname() {


Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the hostname.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top