In php, how to get all variables defined in a method or function. There is the get_defined_vars()
function, which gives variables of the function where I am printing(dump). But I need a function which takes a method name as argument and returns all variables in it.
Example: giveMeAllVariablesDefinedInside($class, $method)
or something like this.