dimanche 23 décembre 2018

Get variables of parent (caller) function with reflection?

i.e. I have no access to parent:

function parent()
{
  $xyz="hello";
  child();
}

function child()
{
   //any way to get the value of   $xyz
}

Is Reflection able to do that?


btw, in advance: please don't comment like "why you need that" or etc, I am long ago tired explaining why i need this or that.





Aucun commentaire:

Enregistrer un commentaire