Source: ryangjchandler.co.uk

Understanding Serialisation in PHP
Serialisation, or serialization, is a process that takes in a piece of data and generates a storable or transportable representation of the data. The serialised representation of data can be achieved with various formats.

What's unique about serialisation in PHP is that it actually uses a special serialisation format to represent various types of data, including arrays and objects. Each data type that PHP can serialise has it's own representation and notation when serialised.

The User object has 2 properties, so the name for each property is serialised as a string and the serialised value comes after.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners