Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]


PHP Manual [The MongoCode class]

Protect Your Website Today

PHP Manual || Types

(PECL mongo >=0.8.3)


This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:

Represents JavaScript code for the database.

MongoCode objects are composed of two parts: a string of code and an optional scope. The string of code must be valid JavaScript. The scope is a associative array of variable name/value pairs.

MongoCode {
/* Methods */
public __construct ( string $code [, array $scope = array() ] )
public __toString ( void ) : string

PHP Manual || Types