Re: block-level scoping (was: [PHP4BETA] no reverse fetch of arrays is BAD!)

From: Date: Wed, 23 Feb 2000 15:59:48 +0000
Subject: Re: block-level scoping (was: [PHP4BETA] no reverse fetch of arrays is BAD!)
References: 1 2 3 4 5 6 7 8 9  Groups: php.version4 
Request: Send a blank email to php-version4+get-10740@lists.php.net to get a copy of this message
: : > Only if you could provide local variable-scoping, I would be more : : > than happy! (hey, this kid is asking for more and more everytime!) ;-) : : : : PHP does have local variables. Or do you mean something else? <cut> : I am sorry, I actually meant block-level scoping.... : : Is it possible before (or inside) the final v4 release? Just thought of a wild reason which is why local variables will be useful. You build an array: if ( etc ) { $blah[] = "result of some manip"; $blah[] = "result of some manip"; # insert $blah by join()ing in a sql table or somewhere # contains only manipulation results and not directly-entered data! } I could pass the entries through: http://blah.com/myscript.php?blah[]=HAHA&blah[]=OVERFLOW local variables would come very handy in such cases! But I also understand that creating block-level scoping requires alot of work for optimization and stuff..... Thank you. Faisal

« previous php.version4 (#10740) next »