Posted By

eethann on 08/15/07


Tagged

php textmate buffer wordpress output utility capture


Versions (?)

return output of function


 / Published in: PHP
 

  1. function my_wp_plugin_buffer_func($funcname,$args = false) {
  2. if (!$args) $args = array();
  3. call_user_func_array($funcname,$args);
  4. $output = ob_get_contents();
  5. return $output;
  6. }

Report this snippet  

You need to login to post a comment.