I have a variable called $variable.
This variable is used quite a lot in various functions.
Is it possible to reach this variable without having to Global it in all function??
$variable = 42;
function one($cool)
{
Global $variable;
return $cool+$variable;
}
function two($wow)
{
Global $variable;
return $wow*$variable;
}
Is there a way of not having to type in "Global $variable;" in each function??