+ 1
Pls explain what is constructor and destructor in php?... I'm confused :(
I have tried understanding the use of constructor and destructor but they are too confusing for me to understand... It would be better if someone explain it to me with real time example if possible.. Please
1 ответ
+ 6
Constructors and Destructors are used to create and delete an object. (Constructors for an object creation, Destructors for an object destruction).