4 ms·
Except :: doesn't always indicate a static class member. parent::foo(); The :: is not indicating that the call to the parent be made statically. $this is a r
by mgkimsal 14y ago
Except :: doesn't always indicate a static class member.
parent::foo();
The :: is not indicating that the call to the parent be made statically. $this is a reserved variable in classes - $parent or $super should have been as well.
- encoderer 14y agoThe grandparent has the right sentiment but the wrong language. When you see :: you know you're addressing a specific class and not a namespace. And since PHP doesn't have any concept of a class-instance there's nothing mucking that up.