- ob_start: documentation ( source)
<?php
class AnotherClass{
public $world = "world";
}
$anotherClass = new AnotherClass();
$c = 10;
ob_start("callback");
function callback($input){
global $c;
return $input.$c;//$anotherClass->world;
}
echo "hello";