PHP Manual

PHP function serialize()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
52.

V jiných jazycích

Status:
All systems normal.
2025