在下面的代码片段中,如何printPhrase知道传递的参数是否为$aand $b(因此它使用默认值$c或$aand $c(因此它使用默认值$b)?
private function printPhrase ($a, $b='black', $c='candle!' ) {
echo $a . $b . $c; //Prints A black cat! or A black candle!
}
private function callprintPhrase () {
printPhrase('A ', ' cat!');
}