I am looking at a PHP file and I see the variable $myaccounts used inside of a conditional statement. The variable isn’t defined in this PHP file, so I am assuming this is a global variable.
How would I go about finding in what directory/file this variable is being defined in?
If you have an IDE that can perform global searches, just look for
$myaccounts*=(*can be replaced with whatever wildcard character your search function uses)