nested functions in php throws an exception when the outer is called more than once
<p>lest assume that i have the following </p>

<pre><code>function a(){
  function b(){}
}
a(); //pass
a(); //error
</code></pre>

<p>why in the second call an exception is thrown and it says </p>

<pre><code>cannot re-declare  function b()
</code></pre>

<p>i thought that each function call makes a new active record that it contains its own scope ;
like in other languages other that PHP when we declare a variable in a function and called that function all the variables are alive for their scope, why the inner function is not the same ?</p>
