|
MongoDB\BSON\Javascript::getScopeReturns the Javascript's scope document Description
final public objectnull MongoDB\BSON\Javascript::getScope()
ParametersThis function has no parameters. Return Values
Returns the Javascript's scope document, or Errors/Exceptions
ExamplesExample #1 MongoDB\BSON\Javascript::getScope example
The above example will output: NULL object(stdClass)#1 (1) { ["foo"]=> int(42) } See Also |