What is the wordpress page title php code?

Try below code.

global $post;
echo esc_html( get_the_title($post->ID) );