Originally posted by Drakla
You have to [man]serialize[/man] the object, then unserialize it when you want to use it.
There's a section in the manual especially concerning objects, so look that up.
A little practical example wouldnt hurt.
// this is how you can use an object across a session
$_SESSION[ 'object' ] = serialize( $myobject );
// to recover
$myobject = unserialize( $_SESSION[ 'object' ] );
They say one picture tells a 1000 words
halojoy says one piece of php code tells more than 1000 words in an abstract description of how to code 🙂