Menu
Does php have a built in function to reference a class that “$this” is an instance of?
In python __class
This is something that I would find very useful in php.
If I didn’t explain it clearly, you can look here (at example 5.18):
[url]http://diveintopython.org/object_oriented_framework/class_attributes.html