In an attempt to speed up my workflow and help the guys with integration (I am a third-party developer). I am trying to expand a file by turning on a function by wrapping comments around each file to display its file name:
function include_module($path) {
echo "\n\n\n";
include($path);
echo "\n\n\n";
}
include_module('form-controls.php');
However, this leads to loss of access to any variables set outside the function. I know that I can:
global $var
But this will only give me access to $ var (I know I can do $ var ['var1'], etc.), is there a way to do "global all" or can anyone think of another approach to wrap comments?
Greetings :)
source
share