|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-17 12:24 UTC] bill at bwi dot com
[2002-04-17 12:29 UTC] bill at bwi dot com
[2002-04-17 16:01 UTC] mfischer@php.net
[2002-04-17 17:00 UTC] bill at bwi dot com
[2002-04-17 17:39 UTC] bill at bwi dot com
[2002-04-23 15:17 UTC] tbrinkman at cinci dot rr dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 08:00:01 2025 UTC |
The following can be confusing to read: html> <br>This is plain HTML <? echo "<br>This is a PHP Block"; ?> <br>This is raw html text embedded in PHP. <? echo "<br>This is the same outer PHP block"; ?> <br>This is more plain HTML </html> The following is easier to read, at least for me, with a C programming background: html> <br>This is plain HTML <? echo "<br>This is a PHP Block"; HTML { <br>This is raw html text embedded in PHP. } echo "<br>This is the same outer PHP block"; ?> <br>This is more plain HTML </html> This would make HTML a reserved word that would turn off the PHP parser within the following set of braces, or if braces aren't present, until the next semicolon. The advantage of this style is it makes it easier to see the underlying block structure of the PHP code, yet avoids having to use echo or print to output chunks of HTML code.