Esempio n. 1
0
/**
 * Check value to find if it was serialized.
 *
 * @param mixed $data Value to check to see if was serialized.
 * @param bool $strict Optional. Whether to be strict about the end of the
 * string. Defaults true.
 * @return bool False if not serialized and true if it was.
 */
function is_serialized($data, $strict = true)
{
    return \Phpf\Util\Str::isSerialized($data, $strict);
}