is_serialized ( $data, $strict = true )
- (string) $data Value to check to see if was serialized.
- (bool) $strict Optional. Whether to be strict about the end of the string. Default true.
- (bool) False if not serialized and true if it was.
- Introduced in WordPress: 2.0.5
- Deprecated in WordPress: —
Check value to find if it was serialized.
If $data is not an string, then returned value will always be false.
Serialized data is always a string.