View Single Post
Old 02-01-2010, 02:25 AM   #3 (permalink)
andformore
The Wanderer
 
andformore's Avatar
 
Join Date: Dec 2009
Posts: 17
Thanks: 2
andformore is on a distinguished road
Default

I agree that its very nice not to be forced to declare variable types in PHP, and this feature is definitely an asset.

That being said, I think the option to declare them in class methods would be beneficial, so that I don't have to manually check its type later. I think its cleaner too, than naming variables like $intMyVar.

I do agree though that PHP's flexibility with variables is a beautiful thing about it
__________________
Something interesting... If you visit one of my sites today, you'll probably double my unique visitors for the day! Shameless Plugs:
My Blog My Octopus Game My Flash Card Website
andformore is offline  
Reply With Quote