不是真的。你可以使用一些替代品。
test(null,null,"hello")
或传递数组:
test(array('c' => "hello"));
那么,函数可以是:
function test($array) { $c = isset($array[c]) ? $array[c] : ''; }
或者在两者之间添加一个函数,但我不建议这样做:
function ctest($c) { test('','',$c); }