note 40643 added to function.ob-start
| From: | mjr at rn2 dot php dot net | Date: | Wed, 10 Mar 2004 14:10:33 +0000 |
| Subject: | note 40643 added to function.ob-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66554@lists.php.net to get a copy of this message | ||
If you're using object-orientated code in PHP you may, like me, want to use a call-back
function that is inside an object (i.e. a class function). In this case you send ob_start a
two-element array as its single argument. The first element is the name of the object (without the $
at the start), and the second is the function to call. So to use a function 'indent' in an
object called '$template' you would use <?php ob_start(array('template',
'indent')); ?>.
----
Manual Page -- http://www.php.net/manual/en/function.ob-start.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40643
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40643&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40643&report=yes
Search -- http://master.php.net/manage/user-notes.php