mardi 15 janvier 2019

Reflection - get locally defined variables?

Is it possible to get variables with Reflection, like this?

function getVars()
{
   ...
   ...
   ...Reflection codes...
   ...
   ...
}


function my1()
{
   $x = 5;
   getVars();
}

so, as in getVars i could find that $x was 5





Aucun commentaire:

Enregistrer un commentaire