What is the best way to start a function with optional arguments in PHP?

When creating a function with optional arguments in PHP, you can use the `NULL` keyword to set default values for those arguments. This allows you to call the function without providing values for the optional arguments, and the default values will be used instead.

function exampleFunction($requiredArg, $optionalArg1 = NULL, $optionalArg2 = NULL) {
    // Function code here
}

// Call the function with only the required argument
exampleFunction($requiredValue);

// Call the function with optional arguments
exampleFunction($requiredValue, $optionalValue1, $optionalValue2);