view function with two parameters but only using one php code example
Example: variable args php
function some_function(...$args): void {
$val1 = $args[0];
// Access as normal index array
}
function some_function(...$args): void {
$val1 = $args[0];
// Access as normal index array
}