One of the more annoying problems when working with data is creating a system to save data from RAM into long-term storage so it can be loaded back into RAM and processed at a later time. There are thousands of different file formats that allow us to take structured data, write it to storage, and then read from it again.
The process of unserialization is the opposite, where we take a string representation of an object and recreate the object.
var_dump($user); This gives us the following output: scott@keck-warren.com test.php:4: class User#2 (2) { public string $name => string(5)"Scott" public string $email => string(21)"scott@keck-warren.com"
{ public function __construct( public string $name, public string $email, public string $password, ) {