array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'mongodb-bson-binary.tostring.php', 1 => 'MongoDB\\BSON\\Binary::__toString', 2 => 'Returns the Binary\'s data', ), 'up' => array ( 0 => 'class.mongodb-bson-binary.php', 1 => 'MongoDB\\BSON\\Binary', ), 'prev' => array ( 0 => 'mongodb-bson-binary.jsonserialize.php', 1 => 'MongoDB\\BSON\\Binary::jsonSerialize', ), 'next' => array ( 0 => 'class.mongodb-bson-decimal128.php', 1 => 'MongoDB\\BSON\\Decimal128', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/binary/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\Binary::__toString — Returns the Binary's data
Diese Methode ist ein Alias für: MongoDB\BSON\Binary::getData().
Diese Funktion besitzt keine Parameter.
Returns the Binary's data.
Beispiel #1 MongoDB\BSON\Binary::__toString() example
<?php
var_dump((string) new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC));
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
string(3) "foo"