I did a performance test on just this type of thing and there was no
discernable difference. Why not do the following which makes the
code much easier to follow and modify

$Content=<<<Content
this is the start of a bunch of lines.
another line,
yet another.
Content;

echo $Content;

It's called a "here document" structure and can include variables.

One note of caution. There can be no spaces at the end of either the
first or second "Content" and the last one must begin in column one.

Urb

<?php



?>

vs.

<?php
echo "this is the start of a bunch of lines";
echo "another line";
echo "yet another";
?>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php



_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to