What is the purpose of using the "include" command in PHP?

The "include" command in PHP is used to include and evaluate a specified file during the execution of a script. This is useful for reusing code across multiple pages, separating logic into different files for better organization, and reducing redundancy in your code. By using "include", you can easily incorporate external files such as headers, footers, or functions into your PHP script.

<?php
include 'header.php';
// Your PHP code here
include 'footer.php';
?>