is_serialized


is_serialized ( $data, $strict = true )

Parameters:
  • (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.
Returns:
  • (bool) False if not serialized and true if it was.
Defined at:
Change Log:
  • 6: .

Description

Checks value to find if it was serialized.If $data is not a string, then returned value will always be false. Serialized data is always a string.

Related Functions

is_serialized_string, maybe_serialize, wp_is_site_initialized, maybe_unserialize, is_single

Top Google Results

User discussions

wpseek mobile