I have function as below.
function test($username, $is_active=1, $sent_email=1, $sent_sms=1) {
echo $sent_email; // It should print default ie 1
}
Call to function :
test($username, 1, null, 1);
How to call function if need to use default value in function. $sent_email should be 1. Can not change sequence of parameter.