Skip to content

Instantly share code, notes, and snippets.

@ericandrewlewis
Created June 22, 2012 03:21
Show Gist options
  • Save ericandrewlewis/2969986 to your computer and use it in GitHub Desktop.
Save ericandrewlewis/2969986 to your computer and use it in GitHub Desktop.
<?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');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment