By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,013 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

serialize / unserialize

P: n/a
I have seen on a couple posts recently, about "serializing" and
"unserializing" objects. What exactly does this mean?

--
Chris Mosser
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Chris,

you can transform an variable that contains anything (also an objects) into
a string e.g. for saving it in a database. You do that with the function
serialize (http://de3.php.net/manual/de/function.serialize.php) und undo it
(for restoring the vars) with unserialize. I'm not sure if there are
restrictions for objects so that they are not fully "serializable" but
you'll get more information on the net or probably in the next posts,

Just Another Chris
Jul 16 '05 #2

P: n/a
thanks..at least I know where to start

--
Chris Mosser
"christopher vogt" <ch**************@rwth-aachen.de> wrote in message
news:bj**********@nets3.rz.RWTH-Aachen.DE...
Hi Chris,

you can transform an variable that contains anything (also an objects) into a string e.g. for saving it in a database. You do that with the function
serialize (http://de3.php.net/manual/de/function.serialize.php) und undo it (for restoring the vars) with unserialize. I'm not sure if there are
restrictions for objects so that they are not fully "serializable" but
you'll get more information on the net or probably in the next posts,

Just Another Chris

Jul 16 '05 #3

P: n/a
"Chris Mosser" <cm*****@comcast.net> wrote in message news:<q-********************@comcast.com>...
I have seen on a couple posts recently, about "serializing" and
"unserializing" objects. What exactly does this mean?


A typical usage of this allows you to 'serialize' the variables in an
object into the $_SESSION array so that you can later reconstruct the
object with all its variables by using 'unserialize'.

Tony Marston
http://www.tonymarston.net/
Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.