function is_serialized_string

7.x misc.inc is_serialized_string($string)
6.x misc.inc is_serialized_string($string)

From: https://stackoverflow.com/questions/1369936/check-to-see-if-a-string-is-...

Check if a string is serialized

Parameters

string $string:

Return value

bool

1 call to is_serialized_string()
content_content_load in modules/content/content.module
Implementation of content's hook_content_load

File

includes/misc.inc, line 303
This file contains misc functions for FlightPath

Code

function is_serialized_string($string) 
 {
  return ($string == 'b:0;' || @unserialize($string) !== false);
}