[eluser]ixxalnxxi[/eluser]
I have a function that has a parameter. There are times when I call that function with nothing to send as a parameter. Would it be better for me to set up default parameters in the function,
function myFunc($var1 = '', $var2 = 0)
or should I simply leave the the function like this,
function myFunc($var1, $var2)
and not pass anything when I don't want any values sent in?