RE: Returning Classes from a function

From: Date: Thu, 14 Dec 2000 08:56:05 +0000
Subject: RE: Returning Classes from a function
Groups: php.general 
Request: Send a blank email to php-general+get-30271@lists.php.net to get a copy of this message
Yes you get all data intact. Regards, Darvin -----Original Message----- From: Joe Stump [SMTP:joe@earth.care2.com] Sent: Wednesday, December 13, 2000 7:09 PM To: php-general@lists.php.net Subject: Returning Classes from a function Lets say I have something like this: function foo() { $class = new Class(); if($class->is_true()) { return $class; } else { return 0; } } $foo = foo(); Lets say $class->is_true() happened and it returned class - would it be returned with all of it's data intact? --Joe --- Joe Stump PHP Programmer www.Care2.com

« previous php.general (#30271) next »