(mongodb >=1.16.0)
MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP data
$value
value
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.
Returns a new MongoDB\BSON\Document instance.