array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'mongodb-bson-decimal128.tostring.php', 1 => 'MongoDB\\BSON\\Decimal128::__toString', 2 => 'Returns the string representation of this Decimal128', ), 'up' => array ( 0 => 'class.mongodb-bson-decimal128.php', 1 => 'MongoDB\\BSON\\Decimal128', ), 'prev' => array ( 0 => 'mongodb-bson-decimal128.jsonserialize.php', 1 => 'MongoDB\\BSON\\Decimal128::jsonSerialize', ), 'next' => array ( 0 => 'class.mongodb-bson-javascript.php', 1 => 'MongoDB\\BSON\\Javascript', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/decimal128/tostring.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(mongodb >=1.2.0)
MongoDB\BSON\Decimal128::__toString — Returns the string representation of this Decimal128
Diese Funktion besitzt keine Parameter.
Returns the string representation of this Decimal128.
Beispiel #1 MongoDB\BSON\Decimal128::__toString() example
<?php
var_dump((string) new MongoDB\BSON\Decimal128(1234.5678));
var_dump((string) new MongoDB\BSON\Decimal128(NAN));
var_dump((string) new MongoDB\BSON\Decimal128(INF));
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
string(9) "1234.5678" string(3) "NaN" string(8) "Infinity"