How can PHP functions be defined and called in separate files?
To define and call PHP functions in separate files, you can create a separate PHP file for each function and then include these files in your main PHP script using the `include` or `require` statement. This way, you can organize your code more effectively and reuse functions across multiple scripts.
// functions.php
function greet() {
echo "Hello, World!";
}
// main.php
require 'functions.php';
greet();