|
MongoDB\BSON\Javascript::__toStringReturns the Javascript's code Description
final public string MongoDB\BSON\Javascript::__toString()
This method is an alias of: MongoDB\BSON\Javascript::getCode. ParametersThis function has no parameters. Return ValuesReturns the Javascript's code. ExamplesExample #1 MongoDB\BSON\Javascript::__toString example
The above example will output: string(33) "function foo(bar) { return bar; }" See Also
|