Typehinting in PHP foreach loops would be a good idea. foreach($array as $key => MyClass $a)

I agree! Awesome! Can't wait until somebody builds this!
[ 29% (41 votes) ]
It's not in line with the PHP philosophy, but would be nice anyway
[ 26% (36 votes) ]
It's not in line with the PHP philosophy, and therefore shouldn't be in PHP
[ 12% (17 votes) ]
Hell no!
[ 23% (33 votes) ]
Other
[ 10% (14 votes) ]
(2 responses) Why?
The check for class-type should be done whilst adding the value to the array, not when reading.
I don't see a use-case for this
But why?
I just want to make you read the comments
Doesn't make sense.

Twtpoll created by @harrieverveer more than 21 months ago

Comment with Twitter

Sign in to leave a comment

Comment with Facebook

141
votes
256
web views
0
mobi views

This poll has ended!

Run an effective social media promotion with OneKontest. http://onekontest.com