RE: [PHP] Accessing a variable from inside a local function

2004-07-28 Thread Frank Munch
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

RE: [PHP] Accessing a variable from inside a local function

2004-07-28 Thread Ford, Mike [LSS]
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