# 'local' variables

- Thread: https://externals.io/message/21280
- Original archive: https://news-web.php.net/php.internals/21280
- Started by Faisal Nasim on 2005-12-19T10:33:13+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21280 — Faisal Nasim — 2005-12-19T10:33:13+00:00

URL: https://externals.io/message/21280#21280

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
