PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

MongoDB\BSON\ObjectId::__toString - Returns the hexidecimal representation of this ObjectId | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

MongoDB\BSON\ObjectId::__toString

(mongodb >=1.0.0)

MongoDB\BSON\ObjectId::__toStringReturns the hexidecimal representation of this ObjectId

説明

final public string MongoDB\BSON\ObjectId::__toString ( void )

パラメータ

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

返り値

Returns the hexidecimal representation of this ObjectId.

エラー / 例外

例1 MongoDB\BSON\ObjectId::__toString() example

<?php

var_dump
((string) new MongoDB\BSON\ObjectId());
var_dump((string) new MongoDB\BSON\ObjectId('000000000000000000000001'));

?>

上の例の出力は、 たとえば以下のようになります。

string(24) "56731b49da14d8747d701211"
string(24) "000000000000000000000001"

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「MongoDB\BSON\ObjectId::__toString - Returns the hexidecimal representation of this ObjectId」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | MongoDB\BSON\ObjectId::__toString - Returns the hexidecimal representation of this ObjectId」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: