Skip to main content

All Questions

Filter by
Sorted by
Tagged with
13 votes
1 answer
3k views

Why is there no facility to overload static properties in PHP?

Intro PHP allows you to overload method calls and property accesses by declaring magic methods in classes. This enables code such as: class Foo { public function __get($name) { return 42; } } $...
Jon's user avatar
  • 537