Object Serialization
suggest changeSyntax
- serialize($object)
- unserialize($object)
Remarks
serialize() accepts most PHP types. A resource is stored as integer 0 (i:0;) and is not a usable handle afterwards. A closure cannot be serialized (Serialization of 'Closure' is not allowed). Some internal objects are only partly represented. Resources refer to external sources, such as database connections.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents