在包含 PHP 变量的 PHP 中输出 html 的更快方法是什么?
版本 A:
<div id="example"><?php echo $var; ?></div>
... much more like this
或者
版本 B:
$html = array();
$html[] = '<div id ="example">';
$html[] = &$var;
$html[] = '</div>';
$html[] = '... much more like this';
echo implode( '', $html );