我有两个功能: core_function($atts) {
(attributes)
(core functions, a few loops, echoes, a lot of direct input)
}
这就是我如何使用输出缓冲显示我的功能(是的,我一直用它!)。 display_function($atts) {
(attribute
我想获得输出“苹果”,因为它在span标记里面有一个叫做水果的id。那么应该在该回调函数中写入哪些代码? <?php
function callback($buffer) {
// get the fruit inHTML text, the output should be "Apples" only
....
....
}
ob
我已经写了一个MVC框架,并且我正在使用ob_start('error_handler')来捕捉致命错误。这很好用! 在boot.php // Start the error-logging
ob_start('error_logging');
// Run the request
Request::run(URL::getInstance()->init()->formatURL());
我需要学习如何使用PHP删除html标签。 这是我的想法(我认为DOM的措辞是我需要的,但我无法弄清它是如何工作的,一个可行的例子对我来说是一个很大的帮助,我不能安装任何外部库和我正在运行PHP 5): function the_remove_function($remove){
// dom parser code here?
return $remove;}
// return a