note 31112 deleted from function.ob-start by sniper

From: Date: Mon, 03 Nov 2003 15:36:35 +0000
Subject: note 31112 deleted from function.ob-start by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59693@lists.php.net to get a copy of this message
Note Submitter: eric@sharpdreams.com ---- An expansion on the undocumented feature above (passing an array as the function name for ob_start()): If you have a class that handles output (or whatever your class does), you can have it reference itself as the output handler: class test { function test() { // constructor ob_start(array(&$this, "end")); } function end($buff) { // do some modifications on $buff here return($buff); } }

« previous php.notes (#59693) next »