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
$data = @unserialize($str); if($data !== false || $str === 'b:0;') echo 'ok'; else echo "not ok";
Correctly handles the case of serialize(false). :)
serialize(false)