+ 6
__construct and __destruct function in oop php.
explain the use of __construct and __destruct function in oop php with example.
3 Answers
+ 17
Here's an explanation with examples.
http://php.net/manual/en/language.oop5.decon.php
+ 1
In my opinion
__construct is called when you have created a new object and __destruct is called when the object is no longer needed and needed to be disposed of.
0
go for tutorials point