Display post content with respect to its title?

if (strpos($post->post_title,'string_it_needs_to_match') === true){
echo the_content();

}

to explain

strpos – method of comparing strings

=== makes sure strings are identical