title: access to variables in nested functions in php
body: <p>suppose i have two nested function like this :</p>
  
  <pre><code>$a = 1;
  $b = 2;
  
  function test(){
      $b  =   20;
      function Sum()
      {   
          $b  =   $GLOBALS['a']   +   $b;
      }
  }
  test();
  Sum();
  echo $b;
  </code></pre>
  
  <p>now i want in function Sum() access to $b variable declared in function test();<br>
  How do you do? </p>