if( !empty( $_GET['func'] ) ) { switch( $_GET['func'] ) { case 'func1': func1(); break; case 'func2': func2(); break; }}