What are the potential pitfalls of using func_get_args() to pass parameters between functions in PHP?

Using func_get_args() to pass parameters between functions in PHP can lead to unclear and hard-to-maintain code, as it makes it difficult to understand what parameters a function expects. It can also make the code more error-prone, as there is no type-checking or validation of the arguments passed. To solve this issue, it is recommended to explicitly define the parameters a function expects in its signature.

function myFunction($param1, $param2) {
    // Function logic here
}

// Call the function with explicit parameters
myFunction($value1, $value2);