'local' variables

php.internals

Faisal Nasim

20 years ago
I'm thinking to implement a block-level variable scope support for PHP (Perl's 'my'). It'll be similar to variable scoping as in the functions using a qualifier 'local' (as opposed to 'global'). Once a variable is localized, the only other same-named variable it can use is the global variable through $GLOBALS array. Any thoughts? Faisal