MongoDB\BSON\Document::fromPHP
(mongodb >=1.16.0)
MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP data
Description
Parameters
Return Values
Returns a new MongoDB\BSON\Document instance.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\BSON\Document::fromBSON() - Construct a new document instance from a BSON string
- MongoDB\BSON\Document::fromJSON() - Construct a new document instance from a JSON string
- » BSON Types
↑ and ↓ to navigate • Enter to select • Esc to close • / to open