We are not writing in perl...
Php offers a very handy feature, the ability to go in and out of html/php
code by just using and the ability to echo data by using
Seperate as much of your HTML from your PHP as possible. It will assist in
readability, and
maintenance.
I _hate_ echo'n out big batches of HTML, so I never do it. I prefer to
include HTML, or have a class or function write HTML. However, printing
in heredoc style is very handy ... more so than sliced bread.
For example:
The bear is ${name}.
EOF;
print( date() );
?>
PHP code, fo
I personally prefer an approach that uses an HTML generation class, sort of
like CGI.pm, to spew out static HTML pages. Or I would, if I could figure
out how to do it. ;)
At 04:40 PM 11/18/2001, Martin Towell wrote:
>I think it's just a matter of taste - I haven't found any noticable
>differe
To: [EMAIL PROTECTED]
Subject: [PHP] Segmented Code/HTML VS. ECHO??
Hello,
Other than the fact that sometimes, you just can't get raw HTML to process
properly by dropping out of PHP code, what are the pros and cons of using
RAW HTML or just ECHOING everything in PHP? Thanks for any in
Hello,
Other than the fact that sometimes, you just can't get raw HTML to process
properly by dropping out of PHP code, what are the pros and cons of using
RAW HTML or just ECHOING everything in PHP? Thanks for any insights.
..Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
5 matches
Mail list logo