(mongodb >=1.2.0)
MongoDB\BSON\Javascript::getCode — Returns the Javascript's code
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
Returns the Javascript's code.
Example #1 MongoDB\BSON\Javascript::getCode() example
<?php
$js = new MongoDB\BSON\Javascript('function foo(bar) { return bar; }');
var_dump($js->getCode());
?>
锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�
string(33) "function foo(bar) { return bar; }"