block-scoped variables
| From: | Faisal Nasim | Date: | Sat, 12 Feb 2000 15:43:06 +0000 |
| Subject: | block-scoped variables | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10176@lists.php.net to get a copy of this message | ||
Hi,
I know this is only supported in functions and
classes right now, but is there any function coming in new
version which would support block-level variable scoping?
$blah = 'hot';
for ( blah )
{
LOCAL $blah; // converse of GLOBAL
$blah = "cool";
}
print $blah; // hot
Thank you!
-Faisal