Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- combining serialized data
- Jon Slaughter
May 16, 2007, 8:06 pm
rate this thread
and then later on I need to deserialize them back into two seperate
variables. I'm not sure how I can go about this? Obviously I could seperate
them by some token and use that but I'm not sure how safe it is. Is there a
better method? or a token that I know I can used.
I guess I could do something like this
$str = serialize(array(serialize($data1), serialize($data2)))
$t = unserialize($str);
$data1 = unserialize($t);
$data2 = unserialize($t);
but seems like the long way around?