I have a "customised" include function that records information every time a file is included. A basic boiled down version is:
Code: Select all
function include_custom($include) {
global $include_count;
$include_count++;
include($include);
}Is there any way of "setting" a function to treat all internal variables, including newly declared ones, as globals?
Any hints whatsoever would be greatly appreciated.