What is the correct way to include a file in PHP using the include function?

When including a file in PHP using the include function, it is important to provide the correct path to the file to be included. This can be a relative or absolute path depending on the file's location in the directory structure. Using the correct path ensures that the file is included successfully without any errors.

<?php
include 'path/to/file.php';
?>