trace($this->_classResources,'$this->_classResources');
If I can get "$this->_classResources" then I don't need the second params.
trace($this->_classResources,'$this->_classResources');
If I can get "$this->_classResources" then I don't need the second params.
You can't, and shouldn't be able to. There is probably a different way you could structure your code to get around this problem.
This function will not directly get the variable name but it will scan for any variable name that contains the same value as the one you specify. If you can ensure that values passed in your function are different from all other values, it should do the job. The crappy method that could work is to set a prefix for the values that will be passed in this function. Once in the function, you just skip the prefix part with substr.