« MongoDB\BSON\Int64::jsonSerialize
MongoDB\BSON\Symbol »

MongoDB\BSON\Int64::__toString

(mongodb >=1.5.0)

MongoDB\BSON\Int64::__toString — Returns the string representation of this Int64

説明

final public function MongoDB\BSON\Int64::__toString(): string

パラメータ

この関数にはパラメータはありません。

戻り値

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"
関連キーワード:
MongoDB   representation   toString   jsonSerialize   Symbol   mongodb   final   example   dump   参考   Types
関連する関数・ページ:
ref.bson.functions   mongodb-bson-packedarray.tostring   mongodb-bson-int64.jsonserialize   mongodb-bson-symbol.jsonserialize   mongodb-bson-document.tostring   mongodb-bson-objectid.jsonserialize