daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Oct 22nd, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  
  4. function prettybox($class, $func_name) {
  5.     echo '<div class="' . $class . '">';
  6.     call_user_func($func_name);
  7.     echo '</div>';
  8.  
  9. }
  10. function main_page() {
  11.     echo 'This is the main page';
  12. }
  13.  
  14. prettybox('main', main_page');
  15. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top