array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mongodb-bson-int64.tostring.php', 1 => 'MongoDB\\BSON\\Int64::__toString', 2 => 'Returns the string representation of this Int64', ), 'up' => array ( 0 => 'class.mongodb-bson-int64.php', 1 => 'MongoDB\\BSON\\Int64', ), 'prev' => array ( 0 => 'mongodb-bson-int64.jsonserialize.php', 1 => 'MongoDB\\BSON\\Int64::jsonSerialize', ), 'next' => array ( 0 => 'class.mongodb-bson-symbol.php', 1 => 'MongoDB\\BSON\\Symbol', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/int64/tostring.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(mongodb >=1.5.0)
MongoDB\BSON\Int64::__toString — Returns the string representation of this Int64
この関数にはパラメータはありません。
Returns the string representation of this Int64.
例1 MongoDB\BSON\Int64::__toString() example
<?php
$int64 = new MongoDB\BSON\Int64('9223372036854775807');
var_dump((string) $int64);
?>上の例の出力は、 たとえば以下のようになります。
string(19) "9223372036854775807"