What's the technical reason why class constants can't be arrays in PHP? -
Any technical reason knows why this compulsion is kept on PHP classes (at least v5.1x)?
Unstable type can not contain unstable type is a constant "variable" which can not be changed; It can not be assigned, but if its value is unstable, then this value can only be changed by :
class SomeClass { Public const $ array = array (0 = & gt;'Efu ', 1 = & gt;' bar '); Public Stable Work Some Functions () {Self: $ array [0] = 'False'; // SomeClass :: $ array has changed now}}
Comments
Post a Comment