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 "serializab le" but
you'll get more information on the net or probably in the next posts,
--
Chris Mosser
"christophe r vogt" <christopher.vo gt@rwth-aachen.de> wrote in message
news:bj0hg7$5m7 $1@nets3.rz.RWT H-Aachen.DE...[color=blue]
> Hi Chris,
>
> you can transform an variable that contains anything (also an objects)[/color]
into[color=blue]
> 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[/color]
it[color=blue]
> (for restoring the vars) with unserialize. I'm not sure if there are
> restrictions for objects so that they are not fully "serializab le" but
> you'll get more information on the net or probably in the next posts,
>
> Just Another Chris
>
>[/color]
"Chris Mosser" <cmosser@comcas t.net> wrote in message news:<q-6dnfXMNusUIs6iU-KYgw@comcast.co m>...[color=blue]
> I have seen on a couple posts recently, about "serializin g" and
> "unserializ ing" objects. What exactly does this mean?[/color]
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'.
This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL
Comment