Hello,
How would I with regular expression search for functions which contains the use of a global variable without running "global $var" first?
The files looks like this:
class TestClass
{
function correctFunc()
{
global $var;
$name = $var->name;
}
function invalidFuncIWantToFind()
{
$age = $var->user->age;
}
}
I want to find the function names of all the invalidFuncIWantToFind. At work this would have really speeded up our work but I didn't get how to do it.