What is the faster way to output html in PHP that contains PHP variables?
Version A:
<div id="example"><?php echo $var; ?></div>
... much more like this
or
Version B:
$html = array();
$html[] = '<div id ="example">';
$html[] = &$var;
$html[] = '</div>';
$html[] = '... much more like this';
echo implode( '', $html );