(mongodb >=1.2.0)
MongoDB\BSON\Javascript::__toString — Returns the Javascript's code
This method is an alias of: MongoDB\BSON\Javascript::getCode().
This function has no parameters.
Returns the Javascript's code.
Example #1 MongoDB\BSON\Javascript::__toString() example
<?php
var_dump((string) new MongoDB\BSON\Javascript('function foo(bar) { return bar; }'));
?>
The above example will output:
string(33) "function foo(bar) { return bar; }"
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant