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