RE: [PHP-DB] Passing Objects
| From: | Hoover, Josh | Date: | Thu, 10 May 2001 20:55:51 +0000 |
| Subject: | RE: [PHP-DB] Passing Objects | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9232@lists.php.net to get a copy of this message | ||
I believe you would need to serialize $passedClass (which, I'm assuming
here, you've set as a myObject object) and then unserialize it to use it on
the following page.
http://www.php.net/manual/en/function.serialize.php
and
http://www.php.net/manual/en/function.unserialize.php
Josh Hoover
KnowledgeStorm, Inc.
jhoover@knowledgestorm.com
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here
> class myObject
> {
> $var1 = "A";
> $var2 = "B";
> }
>
> http://blahblah.com/?passedClass=myObject
>
> would passedClass also send with it being an oject both
> variables and the
> rest of the class defined?