I like to use the define() function in a separate config file. I write very large classes and hate how ugly various echo's look in my code. So, in a config file I put something like:
define ("TR_BEGIN", "<tr>\n");
define ("TR_END", "</tr>\n");
define ("TD_BEGIN", "<td class=\"");
define ("TD_CLOSE", "\">");
define ("TD_END", "</td>\n");
define ("A_BEGIN", "<a href=\"");
define ("A_CLOSE", "\">");
define ("A_END", "</a>");
So, in my php file I do:
<?php
echo (TR_BEGIN);
echo (TD_BEGIN)."css_style".(TD_CLOSE).$sString.(TD_END);
echo (TR_END);
// or
echo (A_BEGIN)."someurl.com".(A_CLOSE)."Some Link".(A_END);
?>
I just thing this looks a lot cleaner and makes debugging large classes much easier.