Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将HTML内容缓冲在其他内容的中间_Php_Html - Fatal编程技术网

Php 将HTML内容缓冲在其他内容的中间

Php 将HTML内容缓冲在其他内容的中间,php,html,Php,Html,我想在内容生成后运行函数(由函数生成)。 但我希望该函数在内容之前显示html输出 像这样: <?php //some html tags before function showSideBarBeforeContent(){ } //content function showSideBarAfterContent(){ } 查看一下: 它可以满足您的需求。非常感谢您,伙计。

我想在内容生成后运行函数(由函数生成)。 但我希望该函数在内容之前显示html输出

像这样:

<?php
//some html tags before
function showSideBarBeforeContent(){

}
//content
function showSideBarAfterContent(){

}
查看一下:
它可以满足您的需求。

非常感谢您,伙计。