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