unserialize

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Creates a PHP value from a stored representation
<?php unserialize(string $data, array $options = []): mixed
<?php         $this->assertEquals($firstNumber, $testClass->getRandomNumber());



        $serialized = serialize($testClass);

        $unserialized = unserialize($serialized);

        unset($unserialized);



        $this->assertEquals($firstNumber, $testClass->getRandomNumber());