PHP Online Tools

Serialize Array

What is function serialize()?

Generates a storable representation of a value.

This is useful for storing or passing PHP values around without losing their type and structure.

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.