I have a variable
called
$variable
And when I call it inside a function then I need to use
some_function(){
global $variable;
echo $variable['array'];
}
But I dont want to use a global
every time, Is there a way so by which I can call variable without setting a global everytime???
Thanks for your time.