PHP require_once Keyword
require_once to add a footer to a page:
<h1>Welcome to my home page!</h1>
<p>Some more text.</p>
<?php require_once 'footer.php';?>
Definition and Usage
require_once keyword is used to embed PHP code from another file. If the file is
not found, a fatal error is thrown and the program stops. If the file was already included
previously, this statement will not include it again.
Read more about including files in our PHP Include Files Tutorial.
❮ PHP Keywords