PHP get the name of the given variable used using var_name()

Reply to comment

This is pretty old but.. get_class($this) will give you a class name