From: Eloi G. <el...@re...> - 2003-02-17 23:59:03
|
$array = unserialize($string); if ($array !==false) or if (is_array($array)) echo "Yay, Eloi!"; ----- Original Message ----- From: "Michael Cannon" <mi...@ca...> To: <php...@li...> Sent: Monday, February 17, 2003 5:40 PM Subject: [Phpwebsite-developers] $variable unserialize() failed > Matt, > > Is there a way to test that a string is a serialized string? Sadly, looking at > something and saying it looks good doesn't mean that it's in the correct format. > > Michael > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |