note 22150 deleted from function.ob-start by sniper

From: Date: Mon, 03 Nov 2003 15:37:08 +0000
Subject: note 22150 deleted from function.ob-start by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59697@lists.php.net to get a copy of this message
Note Submitter: boris@gamate.com ---- If you wish to have an object/method callback instead of [string output_callback] try this: <?php class foo { function bar($buffer) { return "<b>$buffer</b>"; } } $blah = new foo; ob_start(array($blah,'bar')); ?> Test! <?php ob_end_flush(); ?> I wondered why this feature is not documented ( or maybe I'm blind ).

« previous php.notes (#59697) next »