We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


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.