> class Scott {
> var $svar = array(); // free-form hash for whatever data
> function Scott( )
> {
> return $this;
Like, I don't think you're supposed to return $this from your constructor...
> }
> function __sleep()
> {
According to the manual, this is supposed to return an array of the variable
names you want serialized.
return(array('svar'));
in this case, I think, would be what you want...
> }
> function __wakeup()
> {
> $this->svar['sleep'] = "I am waking up";
> }
> }// end class
Once you get it working, post your sample to the User Contributed notes
please :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]