What are the best practices for calling functions defined in included PHP files?

When calling functions defined in included PHP files, it is important to ensure that the file containing the function is included before calling the function. This can be achieved by using the `include` or `require` statement to include the file before calling the function. Additionally, it is good practice to check if the function exists before calling it to avoid any potential errors.

// Include the file containing the function
require_once 'functions.php';

// Check if the function exists before calling it
if (function_exists('myFunction')) {
    // Call the function
    myFunction();
}