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.

MongoTimestamp::__construct

(PECL mongo >= 1.0.1) Creates a new timestamp. public MongoTimestamp::__construct ([ int $sec = time() [, int $inc ]] ) Creates a new timestamp. If no parameters are given, the current time is used and the increment is automatically provided. The increment is set to 0 when the module is loaded and is incremented every time this constructor is called (without the $inc parameter passed in). Parameters:

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::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::__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::__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.

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

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

MongoDate::__toString

(PECL mongo >= 0.8.1) Returns a string representation of this date public string MongoDate::__toString ( void ) Returns a string representation of this date, similar to the representation returned by microtime(). Returns: This date.

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.