Suppose i have
function a(){ function b(){} } a();
why in the second call an exception is thrown and he says
cannot re-declare function b()
I thought that every function call makes a new active record, that it contains its own scope; as in other languages, others that PHP, when we declare a variable in a function and call this function, all variables are live for their scope, why is the inner function not the same?
Hilmi source share