Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Generates a storable representation of a value
<?php serialize(mixed $value): string
<?php     {

        $key = $this->getCacheKey($key);



        file_put_contents($this->getCacheFile($key), serialize($value));

    }
<?php     private function isSerialized(string $string): bool

    {

        return $string === serialize(false) || @unserialize($string) !== false;

    }

}