Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   What are the __construct() and __destruct() methods in a PHP class? (http://siteownersforums.com/showthread.php?t=205897)

travelowebseo 12-06-2017 04:41 AM

What are the __construct() and __destruct() methods in a PHP class?
 
What are the __construct() and __destruct() methods in a PHP class?

Aarti Singh 12-06-2017 09:44 PM

construct() method is used to create object of a class. And destruct() is simply opposite to construct(), used to destroy the object.


All times are GMT -7. The time now is 04:45 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.