September 2001
Intermediate to advanced
768 pages
32h 45m
English
string serialize(mixed data) Converts data into an easily-storable and transportable format.
Returns:
String representation of the data
Description:
serialize() converts a variable or value into a format that can easily be stored as plain text and then restored to its original value using unserialize(). Both the variable’s type and value are stored.
Any variable type can be serialized, except resource pointers. Also, only an object’s member variables are serialized—the object’s methods are discarded during the process.
Availability:
UNIX, Windows
Version:
3.0.5+, 4+
Examples:
$quote = <<<_END_QUOTE_ "Almost at once the No. 37 Penpoint returned to the Featureless Expanse."<br /> An ... |
Read now
Unlock full access