Ok, I asked a similar question more than a year ago, so I apologize for
being a little redundant :)

Why was PHP's foreach loop syntax chosen to be

foreach($dogs as $dog){}

instead of something more common (Python, Javascript, can't think what else
right now) and, to me, more intuitive, like

foreach($dog in $dogs){}

Just wondering what the reasoning was. Thanks.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to