| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
MongoDB\BSON\toPHP(mongodb >=1.0.0) MongoDB\BSON\toPHP — Returns the PHP representation of a BSON value 説明
array|object MongoDB\BSON\toPHP
( string
$bson
[, array $typeMap = []
] )
Unserializes a BSON document (i.e. binary string) to its PHP representation.
The 警告
Fields containing deprecated BSON types (i.e. undefined, symbol, DBPointer) are ignored when converting BSON to PHP. This can result in a loss of data when round-tripping BSON documents through PHP, as any fields containing a deprecated type will be silently dropped. 返り値The unserialized PHP value. エラー / 例外
変更履歴
例例1 MongoDB\BSON\toPHP() example
<?php 上の例の出力は以下となります。 object(stdClass)#1 (1) { ["foo"]=> int(1) } 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「MongoDB\BSON\toPHP - Returns the PHP representation of a BSON value」をGoogle検索
|