Gen. partnerAlgotech

PHP function unserialize()

Creates a PHP value from a stored representation

|
September 11, 2019

Availability in PHP 4.0, PHP 7.0

Creates a PHP value from a stored representation

Parameters

Parameter Data type Default value Note
$str string not Serialized string.
$options mixed null

Return values

mixed

Returns the converted value, which can be boolean, integer, float, string, array or object.

If the passed string is not unserializable, false is returned and E_NOTICE is issued.

Other resources

Official unserialize function 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.