(mongodb >=1.2.0)
MongoDB\BSON\Javascript::__toString — Retourne le code Javascript
Cette méthode est un alias de: MongoDB\BSON\Javascript::getCode().
Cette fonction ne contient aucun paramètre.
Retourne le code Javascript.
Exemple #1 Exemple avec MongoDB\BSON\Javascript::__toString()
<?php
var_dump((string) new MongoDB\BSON\Javascript('function foo(bar) { return bar; }'));
?>
L'exemple ci-dessus va afficher :
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