Type Hinting in PHP 6
View Single Post
02-01-2010, 02:25 AM
Join Date: Dec 2009
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 Octopus Game
My Flash Card Website
View Public Profile
Send a private message to andformore
Find More Posts by andformore