- var_dump: documentation ( source)
- ob_start: documentation ( source)
- ob_end_flush: documentation ( source)
<?php
class a
{
public $test = "deuxieme";
function __destruct()
{
echo "destruct a";
}
}
$object = new a();
function output($buffer)
{
global $object;
ob_end_flush('output');
var_dump($object);
return $buffer.$object->test;
}
ob_start('output');
echo "premier ";