What is the best practice for defining a default/fallback value for an array?
description:
My function accepts 2 parameters. One of them is an array of options to choose from. If the array hasn't been passed, it has a default/fallback value as in example:
public function selectName($howMany = 1, $seed = ['john', 'bob', 'mark', 'cindy']){...
supporting questions:
a) Is storing filled array in default arguments a good idea?
b) Which would be better, a constant, array_merge, if(empty...?