I have a global variable but I can't call it within a function.
I've tried defining the variable within the function and it fixes it, but I need the variable to be global so I can call it within other functions. I've tried using "global" before the variable name, but that doesn't work either.
$randBoolean = FALSE;
function someFunction(){
if(!$randBoolean){
lineBreak();
$randBoolean = TRUE;
}
}
someFunction();
I've used global variables in another php doc and it worked just fine. I'm not sure if it's because this global variable is a boolean or not.