【发布时间】:2015-04-01 01:13:58
【问题描述】:
是否可以使用 ob_get_contents 但保留 php balise?
代码:
<?php ob_start(); ?>
<?php echo 'asdfasdf'; ?>
<?php
$content = ob_get_contents();
ob_end_clean();
?>
结果:
<?php echo 'asdfasdf'; ?>
【问题讨论】:
标签: php ob-get-contents