How to do a code in php and have text before it? [closed]

In order for the server to recognize and execute PHP code, the code must be enclosed within <?php ?> tags.

The first argument of the the_title() function is a string that will be output before the page title itself, so

<?php the_title('Page title: '); ?>

will print something like

Page title: Just Another Post