What's the best way to structure a function, that has parameters that can be null?
Eg
function newDate($day, $time = null, $overRide) {
Do something with the variables
}
# newDate('12', '', 'yes');
Would it be to simply restructure the function as follows:
function newDate($day, $overRide, $time = null) {
Do something with the variables
}
# newDate('12', 'yes');