title: Accessing a variable defined in a parent function
body: <p>Is there a way to access <code>$foo</code> from within <code>inner()</code>?</p>
  
  <pre><code>function outer()
  {
      $foo = "...";
  
      function inner()
      {
          // print $foo
      }
  
      inner();
  }
  
  outer();
  </code></pre>