MongoClient::getConnections

(PECL mongo >=1.3.0) Return info about all open connections public static array MongoClient::getConnections ( void ) Returns an array of all open connections, and information about each of the servers Returns: An array of open connections. Examples: MongoClient::getConnections() example <?php $m = new MongoClient; v

MongoClient::__get

(PECL mongo >=1.3.0) Gets a database public MongoDB MongoClient::__get ( string $dbname ) This is the cleanest way of getting a database. If the database name has any special characters, MongoClient::selectDB() will need to be used; however, this should be sufficient for most cases. <?php $mongo = new MongoClient(); // the following two lines are equivalent $db = $mongo->selectDB("foo"); $db = $mongo->foo;

MongoClient::connect

(PECL mongo >=1.3.0) Connects to a database server public bool MongoClient::connect ( void ) Returns: If the connection was successful. Exception: Throws MongoConnectionException if it fails to connect to the database.

MongoClient::__construct

(PECL mongo >=1.3.0) Creates a new database connection object public MongoClient::__construct ([ string $server = "mongodb://localhost:27017" [, array $options = array("connect" => TRUE) [, array $driver_options ]]] ) If no parameters are passed, this connects to "localhost:27017" (or whatever was specified in php.ini for mongo.default_host and mongo.default_port). server should have the form: mongodb://[username:password@]host1[:

SplSubject::attach

(PHP 5 >= 5.1.0, PHP 7) Attach an SplObserver abstract public void SplSubject::attach ( SplObserver $observer ) Attaches an SplObserver so that it can be notified of updates. Parameters: observer The SplObserver to attach. Returns: No value is returned. This function is currently not documented; only its a

SplSubject::notify

(PHP 5 >= 5.1.0, PHP 7) Notify an observer abstract public void SplSubject::notify ( void ) Notifies all attached observers. Returns: No value is returned. This function is currently not documented; only its argument list is available.

ArrayObject::unserialize

(PHP 5 >= 5.3.0, PHP 7) Unserialize an ArrayObject public void ArrayObject::unserialize ( string $serialized ) Unserializes a serialized ArrayObject. Parameters: serialized The serialized ArrayObject. Returns: The unserialized ArrayObject. This function is currently not documented; only its argument list i

SplObserver::update

(PHP 5 >= 5.1.0, PHP 7) Receive update from subject abstract public void SplObserver::update ( SplSubject $subject ) This method is called when any SplSubject to which the observer is attached calls SplSubject::notify(). Parameters: subject The SplSubject notifying the observer of an update. Returns: No value is returned.

ArrayObject::uksort

(PHP 5 >= 5.2.0, PHP 7) Sort the entries by keys using a user-defined comparison function public void ArrayObject::uksort ( callable $cmp_function ) This function sorts the keys of the entries using a user-supplied comparison function. The key to entry correlations will be maintained. Parameters: cmp_function The callback comparison function. Function cmp_function s

SplSubject::detach

(PHP 5 >= 5.1.0, PHP 7) Detach an observer abstract public void SplSubject::detach ( SplObserver $observer ) Detaches an observer from the subject to no longer notify it of updates. Parameters: observer The SplObserver to detach. Returns: No value is returned. This function is currently not documented; onl