I have a website in which a function is called hundreds of times. There is a variable in the main program that I need within the function, but it's not there. I could add another argument containing that variable
function_name($a,$b,$required_variable);
instead of
function_name($a,$b);
but then the program would become a lot bigger! So is there a method that doesn't require so much extra data?