Posted: Tue May 23, 2006 8:34 pm
It doesn't. So, logically speaking then, there wouldn't be block scoping. Heck, PHP doesn't even have blocks. Not that I've ever needed them though...
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
I'll admit...the useful-ness is rare, but I spend a majority of my time thinking of new ways of solving old problems...Ambush Commander wrote:It doesn't. So, logically speaking then, there wouldn't be block scoping. Heck, PHP doesn't even have blocks. Not that I've ever needed them though...
My and our are used in Perl programming. Typically when you do something like loop over a hash table and you don't need to do anything once the loop is finished. I really must brush up on my perl again... comes in handy sometimesHockey wrote:I have never heard of scope operators like *my* or *our*arborint wrote:I don't think block scope is crazy, regardless of its actual usefulnes. It is that you need scope operators like my or our to do that and there aren't any in PHP.
How would they play a role in what I was trying to do?
I simply needed an object to destruct like what I am accustomed too tis all