PHP Serialize Online Viewer

Example inputs:

Simple array (strings and numbers)
["apple", "banana", "orange", 42]
array("apple", "banana", "orange", 42)
["name", 123, true, false, null]

What are serialize() and unserialize()?

serialize() converts a PHP data structure (like an array or object) into a string that can be saved or transferred easily.

unserialize() takes that storable/transferrable string and converts it back into the original PHP data structure.

Commonly, you might store serialized data in a file or database, or send it across a network (although JSON is often used these days for broader compatibility).