PHP object property initiated as stdClass - Stack Overflow

Posted by Unknown on Wednesday, April 16, 2014

Basically what I want to do is this class A { public $prop = new stdClass; } ... public $prop = 7; // ok public $prop = 7+7; // ok - can be evaluated at compile ...

more

{ 0 comments... » PHP object property initiated as stdClass - Stack Overflow read them below or add one }

Post a Comment

Popular Posts