+ 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

26th Aug 2017, 2:06 PM
dinesh yoga
dinesh yoga - avatar
1 Réponse
+ 6
Constructors and Destructors are used to create and delete an object. (Constructors for an object creation, Destructors for an object destruction).
26th Aug 2017, 2:54 PM
Mattéo