note 58294 added to function.echo
| From: | oryan at zareste dot com | Date: | Sun, 30 Oct 2005 19:26:34 +0000 |
| Subject: | note 58294 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97842@lists.php.net to get a copy of this message | ||
Just a quick show of the basics - a detail people often miss.
Your script will work if you do this:
<?php if(true){?>
<b>This shows up</b>
<?php }
if(false){?>
<b>This does not show up</b>
<?php }?>
This shows the HTML in Dreamweaver's preview, so it's ideal for editing, there's no
hinderance for long outputs, and of course, no quote escaping. The obvious annoyance is typing
<?php echo $variable;?> for variable outputs, but it's worth the ease of HTML editing
(plus Dreamweaver has an 'echo' shortcut in the PHP menu)
http://us3.php.net/manual/en/language.basic-syntax.php
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58294
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58294&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58294&report=yes
Search -- http://master.php.net/manage/user-notes.php