In PHP, unlike Java or C++, $this has to be explicitly used to refer to variables within a class. The value of $this is determined by the context in which it is called. In certain situations $this may actually refer to the invoking class rather then the current class. This breaks object encapsulation.
Older News
S M T W T F S
21 22 23 24 25 26 27
28 29 30 31 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
Copyright© 2010 The Gaea Times