I want to know the variable name that is calling an object.
For example:
ClassObj $var = new ClassObj();
Is it possible to get the variable name $var
from the constructor within ClassObj?
I want to know the variable name that is calling an object.
For example:
ClassObj $var = new ClassObj();
Is it possible to get the variable name $var
from the constructor within ClassObj?