note 24356 added to control-structures
| From: | andreas at marketingmix dot com dot au | Date: | Wed, 14 Aug 2002 03:00:36 +0000 |
| Subject: | note 24356 added to control-structures | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34977@lists.php.net to get a copy of this message | ||
This is quoted from the downloadable PHP manual in regard to the Alternative Syntax used in the
above 2 examples
Warning
Alternative syntax is deprecated as of PHP 4. Basically, it just generates unreadable code, and it
gets very complicated when mixing it with the normal syntax. Although there are no plans to break
this syntax, it cannot be ruled out that one day this will stop working. You are warned.
I would not reccomend using the : and endif; syntax, stick to the traditional {} controls.
--
http://www.php.net/manual/en/control-structures.php
http://master.php.net/manage/user-notes.php?action=edit+24356
http://master.php.net/manage/user-notes.php?action=delete+24356
http://master.php.net/manage/user-notes.php?action=reject+24356