PHP It does not have masterPage
(Without using frameworks) however there are two functions to simulate this
include () and require ()
You create two files (or more) one with name header.php
and another footer.php
header.php
<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>System</title>
<!-- Styles -->
</head>
<body>
<header>
</header>
<nav>
<ul>
<li><a href="#" >Home</a></li>
</ul>
</nav>
footer.php
<footer>
<p> footer</p>
</footer>
and on your page you want to include them would be
<?php
include 'header.php';/* Incluye el header ya creado */
/* Contenido */
<div id="main">
</div>
include 'footer.php'; /* Incluye el footer ya creado */
?>