What\'s the best way to determine whether or not a string is the result of the serialize() function?
serialize()
https://www.php.net/manual/en/function.serialize
Optimizing Pascal MARTIN's response
/** * Check if a string is serialized * @param string $string */ public static function is_serial($string) { return (@unserialize($string) !== false); }