Someone once told me, that it is good for performance, not to open and close php tags and use echo all the time, like that:
<hgroup> <h1><?php echo getHeading1(); ?></h1> <h2><?php echo getHeading2(); ?></h2> </hgroup>
Instead he uses an output variable and echoes it in the end.
$output .= '<hgroup> <h1>' . getHeading1(); . '</h1> <h2>' . getHeading2(); . '</h2> </hgroup>'; echo $output;
Does that really make any difference? When do I use which method?