good question...I might need an answer when you get one.

-elias

""Johannes Schmiderer"" <[EMAIL PROTECTED]> wrote in message
9ds7le$caa$[EMAIL PROTECTED]">news:9ds7le$caa$[EMAIL PROTECTED]...
> Is there no way to access the $x within the inner function:
>
>  function outer()
>  {
>   $x = 50;
>   function inner()
>   {
>    echo $x;
>   }
>
>   inner();
>  }
>
> Global in the inner function does not work. I do not want to have $x
global
> for all.
>
> Hannes Schmiderer
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to