- var_dump: documentation ( source)
- ob_start: documentation ( source)
- ob_end_flush: documentation ( source)
<?php
class Test
{
public function a($buffer) {
var_dump($buffer);
return $buffer;
}
public function b($buffer) {
var_dump($buffer);
return $buffer;
}
}
$test = new Test();
ob_start(array($test, 'a'));
ob_start(array($test, 'b'));
echo ' 2 ';
ob_end_flush();
echoa();
ob_end_flush();