Gen. partnerAlgotech

PHP function serialize()

Generates a storable representation of a value

|
September 11, 2019

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.

Other resources

Official serialize documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.