- ob_start: documentation ( source)
<?php
class a
{
public $test = "test";
}
function output($buffer)
{
//global $object;
$object = new a();
$object->bar = "a";
return $buffer.$object->bar;
}
$object = new a();
$object->bar = "a";
ob_start('output');
echo "foo ";