Php/docs/class.mongoint64

From Get docs
Revision as of 07:37, 9 December 2020 by Notes (talk | contribs) (autoload)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(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.


Introduction

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


Class synopsis


MongoInt64 {

/* Fields */

public string $value

/* Methods */

public __construct ( string $value )

public __toString ( ) : string

}

Fields

value
This is the string value of the 64-bit number. For instance, 123's value would be "123".


Table of Contents