Tagged: object oriented

self vs this 0

Difference between self and $this

The difference between self and $this is kinda thin but can be easily illustrated with the proper example. Basically self is used to reference the current class name within a class, where as $this refers to the current object instance.