Site icon Hip-Hop Website Design and Development

How one can change pagination base from slash to question type?

Can this perform…

perform custom_pagination_base() {
international $wp_rewrite;
$wp_rewrite->pagination_base = 'p';
$wp_rewrite->flush_rules();
}
add_action( 'init', 'custom_pagination_base' );

…be in some way used to vary the from of the url from “web page/2/” to not “p/2/” however to “?p=2”?