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