MongoDB\BSON\Javascript::getCode

(mongodb >=1.2.0)

MongoDB\BSON\Javascript::getCodeReturns the Javascript's code

Opis

final public MongoDB\BSON\Javascript::getCode ( void ) : string

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the Javascript's code.

Błędy/Wyjątki

Przykłady

Przykład #1 MongoDB\BSON\Javascript::getCode() example

<?php

$js 
= new MongoDB\BSON\Javascript('function foo(bar) { return bar; }');
var_dump($js->getCode());

?>

Powyższy przykład wyświetli:

string(33) "function foo(bar) { return bar; }"

Zobacz też:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top