PHP 8.4.2 Released!

MongoDB\BSON\Document::fromPHP

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromPHPConstruct a new document instance from PHP data

Açıklama

final static public MongoDB\BSON\Document::fromPHP(object|array $value): MongoDB\BSON\Document

Bağımsız Değişkenler

value (object|array)

A PHP object or array containing the document. When passing an array with numeric keys, the numeric values are converted to strings and used as document keys.

Dönen Değerler

Returns a new MongoDB\BSON\Document instance.

Hatalar/İstisnalar

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top