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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners