BSON\Javascript
PHP Manual

BSON\Javascript::__construct

(mongodb >=0.2.0)

BSON\Javascript::__constructDescription

Description

final public BSON\Javascript::__construct ( string $javascript [, string $scope ] )

Parameters

javascript

scope

Return Values

Errors/Exceptions

Examples

Example #1 BSON\Javascript::__construct() example

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


BSON\Javascript
PHP Manual