Please wait while we load your page...
 

Announcements

PHP Manual :: The MongoInt32 class



MongoBinData::__toString || MongoInt32::__construct || Types || PHP Manual

(PECL mongo >=1.0.9)

Warning

This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this class in the new extension.

Instead, the new extension chooses the appropriate database type depending on the integer's value.

The class can be used to save 32-bit integers to the database on a 64-bit system.

MongoInt32 {
/* Fields */
public string $value ;
/* Methods */
public __construct ( string $value )
public string __toString ( void )
}
value
This is the string value of the 32-bit number. For instance, 123's value would be "123".


MongoBinData::__toString || MongoInt32::__construct || Types || PHP Manual
Live Chat Not Available