home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Book HomePHP CookbookSearch this book

7.4. Destroying an Object

7.4.3. Discussion

It's not normally necessary to manually clean up objects, but if you have a large loop, unset( ) can help keep memory usage from spiraling out of control.

PHP 4 doesn't have destructors, however Zend Engine 2 supports them with the _ _destruct( ) method.

Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.