Answer the question
In order to leave comments, you need to log in
Private constructor in php?
Recently, in one of the groups in VK, I came across a comment in which the author writes that "in PHP it is now impossible to make a constructor private - you will get an error." Of course, I may have missed something, but still: is it really so, if so, from which version was it introduced?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question