note 61368 added to function.echo
| From: | bennyhuratgmaildotcom at osu1 dot php dot net | Date: | Wed, 01 Feb 2006 19:39:27 +0000 |
| Subject: | note 61368 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102832@lists.php.net to get a copy of this message | ||
in response to:
"This is a beauty for lots of text, really. And easy to read, if you're a PERL or shell
person."
If you use an editor like Dreamweaver that can show you a somewhat rendered version of the page, you
can output large blocks of text/html by doing the following:
<?php
if(boolean_function())
{
?>
<p>You successfully made the boolean funciton return true</p>
<p>blah blah blah....</p>
<?php
}
else
{
?>
<p>Sorry, but you didnt make the boolean true!</p>
<?php
}
//more code...
?>
As opposed to using the "dochere" syntax. I find it's much easier to move around in
large scripts when I output HTML like this because I can just click on the text near the code I need
to edit in Dreamweavers display view, and then switch to code view and I'm right were I need to
be.
----
Server IP: 64.71.164.2
Probable Submitter: 128.143.88.153
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61368
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61368&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61368&report=yes
Search -- http://master.php.net/manage/user-notes.php