MongoDBRef::isRef

(PECL mongo >= 0.9.0) Checks if an array is a database reference public static bool MongoDBRef::isRef ( mixed $ref ) This method does not actually follow the reference, so it does not determine if it is broken or not. It merely checks that ref is in valid database reference format (in that it is an object or array with $ref and $id fields). Parameters: ref Array or obj

MongoDBRef::get

(PECL mongo >= 0.9.0) Fetches the object pointed to by a reference public static array MongoDBRef::get ( MongoDB $db, array $ref ) Parameters: db Database to use. ref Reference to fetch. Returns: Returns the document to which the reference refers or NULL if the document does not exist (the reference is broken)

MongoDBRef::create

(PECL mongo >= 0.9.0) Creates a new database reference public static array MongoDBRef::create ( string $collection, mixed $id [, string $database ] ) If no database is given, the current database is used. Parameters: collection Collection name (without the database name). id The _id field of the object to which to link.

MongoInt64::__toString

(PECL mongo >= 1.0.9) Returns the string representation of this 64-bit integer. public string MongoInt64::__toString ( void ) Returns: Returns the string representation of this integer.

MongoInt64::__construct

(PECL mongo >= 1.0.9) Creates a new 64-bit integer. public MongoInt64::__construct ( string $value ) Creates a new 64-bit number with the given value. Parameters: value A number. Returns: Returns a new integer.

MongoInt32::__toString

(PECL mongo >= 1.0.9) Returns the string representation of this 32-bit integer. public string MongoInt32::__toString ( void ) Returns: Returns the string representation of this integer.

MongoInt32::__construct

(PECL mongo >= 1.0.9) Creates a new 32-bit integer. public MongoInt32::__construct ( string $value ) Creates a new 32-bit number with the given value. Parameters: value A number. Returns: Returns a new integer.

MongoBinData::__toString

(PECL mongo >= 0.8.1) The string representation of this binary data object. public string MongoBinData::__toString ( void ) Returns: Returns the string "<Mongo Binary Data>". To access the contents of a MongoBinData, use the bin field.

MongoBinData::__construct

(PECL mongo >= 0.8.1) Creates a new binary data object. public MongoBinData::__construct ( string $data [, int $type = 0 ] ) Creates a new binary data object. There are seven types of binary data currently recognized by the BSON spec, which are defined as class constants. For backwards compatibility, the PHP driver uses MongoBinData::BYTE_ARRAY as the default; however, this may change to MongoBinData::GENERIC in the fu

MongoRegex::__toString

(PECL mongo >= 0.8.1) A string representation of this regular expression public string MongoRegex::__toString ( void ) Returns a string representation of this regular expression. Returns: This regular expression in the form "/expr/flags". Examples: MongoRegex::__toString() example <?php $r = new MongoRegex( "/[a-fA