Foreach loop syntax

From: Date: Tue, 14 Aug 2001 23:08:33 +0000
Subject: Foreach loop syntax
Groups: php.general 
Request: Send a blank email to php-general+get-62711@lists.php.net to get a copy of this message
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. Keith

« previous php.general (#62711) next »