In PHP, is it possible to create an instance of an class without calling class's constructor ?
- by Rachel
By any means, is it possible to create an instance of an php class without calling its constructor ?
I have Class A and while creating an instance of it am passing file and in constructor of Class A am opening the file.
Now in Class A, there is function which I need to call but am not required to pass file and so there is not need to use constructor functionality of opening file as am not passing file.
So my question is, Is it possible by any means to create an instance of an PHP class without calling its constructor ?