<?php class a { public $test = "test"; } function output($buffer) { global $object; return $buffer.$object->bar; } $object = new a(); $object->bar = "a"; ob_start('output'); echo "foo ";
You have javascript disabled. You will not be able to edit any code.