- var_dump: documentation ( source)
- ob_start: documentation ( source)
- ob_get_flush: documentation ( source)
<?php
$buffer = -1;
function callback($output)
{
return 'R';
}
ob_start('callback');
echo 'hello';
//$a = ob_get_contents();
$b = ob_get_flush();
var_dump($buffer);