note 63670 deleted from function.serialize by bjori

From: Date: Tue, 28 Mar 2006 09:17:48 +0000
Subject: note 63670 deleted from function.serialize by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106822@lists.php.net to get a copy of this message
Note Submitter: webmaster at tmproductionz dot com Reason: bad code ---- <?php function is_serialized ( $var ) { return intval ( unserialize ( $var ) ) ; } ?> will return 0 if the string cannot be unserialized, 1 if it can. usefull for checking if the string indeed is serialized.

« previous php.notes (#106822) next »