I have a function that looks somewhat like this:
function name( param1 = default, param2 = default, param3 = default) {...}
I'm calling the function by passing elements of an array as the parameters like this:
name( $param['foo'], $param['bar'], $param['hello'] );
My question is -- if one (or more) of the elements passed in the function call is undefined, how is it handled within the function itself? I ask because I am trying to call the function but I have no way of knowing if any of the elements are defined.
Inside of the function, I tried debugging a parameter passed through using isset(), is_null(), and empty() and I got false, true, and true respectively. This leads me to believe that since something is actually being passed in, the default value is not set. If anyone could explain how something like this is handled I would appreciate it.