Hi,
Is there a way to make all variables declared outside a function available for the function without having to write a long list like: global $var1, $var2, ... ?
I need this for an error handling function which has to prematurely end the php script after including a template page which uses those global vars. If not, is there any other way to make life easier in this case?
Thx in advance,
RaKKeR
Is there a way to make all variables declared outside a function available for the function without having to write a long list like: global $var1, $var2, ... ?
I need this for an error handling function which has to prematurely end the php script after including a template page which uses those global vars. If not, is there any other way to make life easier in this case?
Thx in advance,
RaKKeR