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