G
G
Gennady Knyazkin2016-03-19 16:37:21
PHP
Gennady Knyazkin, 2016-03-19 16:37:21

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 question

Ask a Question

731 491 924 answers to any question