Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function prettybox($class, $func_name) {
- echo '<div class="' . $class . '">';
- call_user_func($func_name);
- echo '</div>';
- }
- function main_page() {
- echo 'This is the main page';
- }
- prettybox('main', main_page');
- ?>
Add Comment
Please, Sign In to add comment