PHP function serialize()
Availability in PHP 4.0
Generates a storable representation of a value
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$value |
mixed |
not | The value to be serialized. serialize handles all types, except the resource-type. You can even serialize arrays that contain references to itself. Circular references inside the array/object you are serializing will also be stored. Any other reference will be lost. |
Return values
string
a string containing a byte-stream representation of value that can be stored anywhere.