update : 2015.11.03
php.shukuma.com

검색:
 
 
Gets the hostname being used for this machine's ids

MongoId::getHostname

(PECL mongo >= 1.0.8)

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

설명

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();
}

?>

인수

이 함수는 인수가 없습니다.

반환값

Returns the hostname.