fork(1) download
  1. <?php
  2.  
  3. function the_permalink($arg) {
  4. echo "The Perma-Link, $arg";
  5. }
  6.  
  7. function get_ob() {
  8. $arg_list = func_get_args();
  9. if (ob_start()) {
  10. call_user_func_array(array_shift($arg_list), $arg_list);
  11. return ob_get_clean();
  12. }
  13. }
  14.  
  15. $the_permalink = get_ob('the_permalink', "abc");
  16.  
  17. echo "output: $the_permalink\n";
  18.  
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
output: The Perma-Link, abc