What is the correct syntax for passing arguments to a function in PHP?

When passing arguments to a function in PHP, you need to define the parameters the function expects within the parentheses of the function declaration. When calling the function, you need to provide the values for these parameters in the same order. It is important to match the number of arguments passed with the number of parameters defined in the function. Example:

// Function declaration with parameters
function greet($name, $age) {
    echo "Hello, $name! You are $age years old.";
}

// Calling the function with arguments
greet("Alice", 25);