PHP 7.4.9 Released!

The MongoCode class

(PECL mongo >=0.8.3)


A extensão que define essa classe está obsoleta. Alternativamente utilize a extensão MongoDB deve ser utilizada. Alternativas a essa classe incluem:


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.

Sinopse da classe

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


add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top