Question:
say I have an array that has been serialized for storage in a database:
This will be retrieved from the database alongside other, non-serialized values:PHP Code:$pull['job']=array('graphic design', 'web design'); $pull['job']=serialize($pull['job']);
Is there a way that if can check each element of the returned array to see if it is a serialized string vs. a regular string? Or do I just have to remember which strings I serialized in the first place?PHP Code:$pull['name']='Adrian';
$pull['job']='a:2:{i:0;s:17:"graphic design";i:1;s:10:"web design";}';
thanks, everyone



Reply With Quote
Bookmarks