- ob_get_clean: documentation ( source)
- var_dump: documentation ( source)
- ob_start: documentation ( source)
- print_r: documentation ( source)
- ob_get_contents: documentation ( source)
- ob_get_status: documentation ( source)
<?php
$buffer = -1;
function callback($output)
{
global $buffer;
$buffer = $output;
return $output.'r';
}
ob_start('callback');
echo 'hello';
print_r(ob_get_status());
$a = ob_get_contents();
ob_get_clean();
echo $a;
var_dump($buffer);