Re: Deleting Objects
| From: | Leif K-Brooks | Date: | Thu, 03 Apr 2003 05:33:39 +0000 |
| Subject: | Re: Deleting Objects | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142074@lists.php.net to get a copy of this message | ||
That will work perfectly.
trlists@clayst.com wrote:
How does one delete an object? For example: $object = new Class(...); ..... $object = new Class(...); I want to throw away the old object and create a new, freshly initialized one using the same variable. Is the above adequate or will this orphan the first object? If so is an unset($object) prior to the second "new" the appropriate approach? Thanks, ---------- Tom Rawson-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.