note 64261 deleted from function.serialize by bjori
| From: | bjori@php.net | Date: | Tue, 11 Apr 2006 11:42:56 +0000 |
| Subject: | note 64261 deleted from function.serialize by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107764@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at tmproductionz dot com
Reason: useless
----
I wanted a function to check if a string was serialized before doing anything to the string so i
created one.
<?php
function is_serialized ( $var ) {
return intval ( unserialize ( $var ) ) ;
}
?>
the function will return 1 if the string was serialized and 0 if it wasnt.