How can I pass an optional parameter to a PHP function. For example
function test($required, $optional){..}
So that i should be able to call the function by passing either one parameter or both. For example:
test($required, $optional)
test($required);
Thanks.