At 07:39 PM 7/28/2004, Ford, Mike [LSS] wrote:
Actually, your problem is that the function bar is *not* local to foo. Even
though PHP lets you declare functions lexically within the scope of other
functions
Ouch! Thanks! Got that much wiser! So for keeping the namespace cleaner
usi
On 28 July 2004 12:29, Frank Munch wrote:
> Would anyone know how to resolve this scope problem? Or is
> this possibly
> something PHP can't (yet) do?
>
> The problem is to access a variable in a function foo from a function
> local to foo.
Actually, your problem is that the function bar is *not
Would anyone know how to resolve this scope problem? Or is this possibly
something PHP can't (yet) do?
The problem is to access a variable in a function foo from a function local
to foo.
- - -
function foo($var_foo)
{
$my_foo_local = 10; //How can I reach this from inside function bar(...?
3 matches
Mail list logo