BSON\Javascript
PHP Manual

BSON\Javascript::__construct

(mongodb >=0.2.0)

BSON\Javascript::__constructDescription

説明

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

パラメータ

javascript

scope

返り値

エラー / 例外

例1 BSON\Javascript::__construct() example

<?php

/* ... */

?>

上の例の出力は、 たとえば以下のようになります。

...

参考


BSON\Javascript
PHP Manual