PHP function scope
<p>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 <code>$x</code> variable in the following code, without passing arguments?</p>

<pre><code>function foo() {
 $x = 1;
 return bar();
}

function bar() {
  //get $x from foo here somehow?
  return $x ? 'stuff' : 'other stuff';
}
</code></pre>
