# MongoDB\Driver\CursorId::unserialize

(mongodb >=1.7.0)

MongoDB\Driver\CursorId::unserialize — Unserialize a CursorId

### Description

final public MongoDB\Driver\CursorId::unserialize ( string `$serialized` ) : void

### Parameters

`serialized`

  The serialized MongoDB\Driver\CursorId.

### Return Values

Returns the unserialized MongoDB\Driver\CursorId.

### Errors/Exceptions

- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\UnexpectedValueException if the properties cannot be unserialized (i.e. `serialized` was malformed).
- Throws MongoDB\Driver\Exception\InvalidArgumentException if the properties are invalid (e.g. missing fields or invalid values).

### See Also

- MongoDB\Driver\CursorId::serialize() - Serialize a CursorId
- unserialize() - Creates a PHP value from a stored representation
- Serializing Objects