MongoDB\BSON\Javascript::serialize
(mongodb >=1.2.0)
MongoDB\BSON\Javascript::serialize — Serialize a Javascript
Description
Parameters
This function has no parameters.
Return Values
Returns the serialized representation of the MongoDB\BSON\Javascript.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\BSON\Javascript::unserialize() - Unserialize a Javascript
- serialize() - Generates a storable representation of a value
- Serializing Objects