MongoId::__toString
MongoCode::__construct
Mongo
PHP Manual

# The MongoCode class

## 소개

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
MongoCode {
/* Methods */
__construct ( string `$code` [, array `$scope`= array() ] )
public string __toString ( void )
}

## Table of Contents

- MongoCode::__construct — Creates a new code object
- MongoCode::__toString — Returns this code as a string

MongoId::__toString
MongoCode::__construct
Mongo
PHP Manual