MongoDB\BSON\Javascript::__toString

(mongodb >=1.2.0)

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

Opis

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

Ta metoda jest aliasem dla: MongoDB\BSON\Javascript::getCode().

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the Javascript's code.

Przykłady

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

<?php

var_dump
((string) new MongoDB\BSON\Javascript('function foo(bar) { return bar; }'));

?>

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