class foo {
// was this always allowed?
public $bar = 'abc default value';
// or did older versions only allow this?
public $bar;
}
I couldn't determine the answer to this question looking at documentation. I found some old code where no class had a default value. Maybe it was a developer preference, but I was wondering if older PHP versions didn't even allow default values?
Just a question of curiosity.