In php how get all variables defined in method or function. All right we all know that there is a function named get_defined_vars()
which gives variables of the function where I am printing(dump). But I need function which takes arg as method name and returns all variables in it.
example giveMeAllVariablesDefinedInside($class, $method)
or something like this.
Aucun commentaire:
Enregistrer un commentaire