Skip to content
Advertisement

how to start ob_start inside a class?

im doing a little reasearch about minimalizing the html from php. like

JavaScript

the problem is how do i call this ob_start(function) ? can we do like ob_start($this->compresssor()) ? ( ok i know it fails ) inside a class? anyone ??

Thanks for looking in.

Adam Ramadhan

Advertisement

Answer

JavaScript

PHP uses an array(instance,function) representation for representing member functions of classes as callable functions.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement