Get All Pages as strings in array

Use get_pages() to fetch an array of page objects, then pass that result to wp_list_pluck() to extract an array of just page titles:

$page_titles = wp_list_pluck( get_pages(), 'post_title' );
print_r( $page_titles );