PHP serialize() Function
The serialize() function generates a storable
representation of a value.
Syntax
serialize(mixed $value): string
Try It Online
Output
Click Run to execute your code
Related Functions
- unserialize() - Creates a PHP value from a stored representation
- json_encode() - JSON encoding
Enjoying these tutorials?