I know this is kind of a hacky thing I'm trying here, but I'm wondering if this is even possible. is there anyway I can access the $x variable in the following code, without passing arguments?
function foo() {
 $x = 1;
 return bar();
}
function bar() {
  //get $x from foo here somehow?
  return $x ? 'stuff' : 'other stuff';
}
 
     
     
     
    