[PHP-DEV] Bug #329 Updated: inconsistency with if-elseif-else-endif loops From: Bug Database (php-dev <email protected>)
Date: 04/29/98

ID: 329
Updated by: zeev
Reported By: info <email protected>
Status: Closed
Bug Type: Parser error
Assigned To:
Comments:

You misunderstood it. The statement seperator
doesn't change from ; to : inside if blocks (or anywhere
else, for that matter). It remains ;.

Colons are used only after if (), elseif () and else,
mainly because one full
if ():
  ...
elseif ():
  ...
else:
  ...
endif;

is one statement.

Full Bug description available at: http://ca.php.net/bugs.php3?id=329