There are a lot of tutorials online for you to learn from, one of which could be from w3schools, although not the best, it’s adequate to get an understanding. The best thing to do is to research it and figure out what you wish to do, if nothing else, just a bit of sage advice, to make a basic php page, declare everything like you would an html page but just put the php tag where you want it:
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php include ("footer.php"); ?>
</body>
</html>
You have to name it .php or else it will be pointless, it won’t work (I would think).
W3Schools (Link)