PHP include Keyword
include to add a footer to a page:
<h1>Welcome to my home page!</h1>
<p>Some more text.</p>
<?php include 'footer.php';?>
Definition and Usage
include keyword is used to embed PHP code from another file. If the file is not
found, a warning is shown and the program continues to run.
Read more about including files in our PHP Include Files Tutorial.
❮ PHP Keywords