Basically what I want to do is this
class A {
public $prop = new stdClass;
}
And PHP is telling me I can't do this:
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in - on line ##
What's up with that? I know that you basically can't assign a function's return value to a property in initialization, but can someone explain why is that, like the technical stuff. Thanks in advance!