All PHP types except for resources are serializable. Resources are a unique variable type that reference "external" sources, such as database connections.
Serialize / Unserialize
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0