getOptions()
getOptions(array $userSpecified, array $defaults) : array
Simulate named arguments using associative arrays.
Basically just merge the two arrays, giving user specified options the preference. Also ensures that each paramater in the user array is valid and throws an exception if an unknown element is found.
Parameters
array | $userSpecified | The array of options passed to the function call |
array | $defaults | The default options to be used |