Talk:PHP Programming/Special Methods

Constructors have to be public?

 * "In PHP5 a constructor must be declared as public or it will not work."

Is this true? In some design patterns (e.g. factory method) it's common to have a private constructor that's called only by public static methods. I believe PHP supports this.--Fishpi (talk) 15:02, 13 August 2010 (UTC)