是否可以声明类似或类似的变量值:
<?php
    $var =
?>
<!-- block of html code that goes into $var -->
<?php
    //do anything with $var that contains the html code of above
?>发布于 2014-04-09 13:15:28
<?php
ob_start();
?>
<!-- block of html code that goes into $var -->
<?php
$var = ob_get_contents();
while (@ob_end_flush());注意,这假设您没有使用输出缓冲。
https://stackoverflow.com/questions/22963456
复制相似问题