note 54206 added to control-structures.alternative-syntax
| From: | skippy at zuavra dot net | Date: | Mon, 27 Jun 2005 11:32:10 +0000 |
| Subject: | note 54206 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91013@lists.php.net to get a copy of this message | ||
If it needs saying, this alternative syntax is excellent for improving legibility (for both PHP and
HTML!) in situations where you have a mix of them.
Interface templates are very often in need of this, especially since the PHP code in them is usually
written by one person (who is more of a programmer) and the HTML gets modified by another person
(who is more of a web designer). Clear separation in such cases is extremely useful.
See the default templates that come with WordPress 1.5+ (www.wordpress.org) for practical and smart
examples of this alternative syntax.
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54206
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54206&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54206&report=yes
Search -- http://master.php.net/manage/user-notes.php