Typehinting in PHP foreach loops would be a good idea. foreach($array as $key => MyClass $a)
|
| (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
Comment with Facebook
| 141 votes |
256 web views |
0 mobi views |
This poll has ended!
| Tweet |
|
![]()
![]()
Run an effective social media promotion with OneKontest. http://onekontest.com