What are the __construct() and __destruct() methods in a PHP class?
What are the __construct() and __destruct() methods in a PHP class?
|
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.