在PHP 4/5中是否可以在调用时指定一个命名的可选参数,跳过你不想指定的参数(比如在python中)?
就像是:
function foo($a,$b='', $c='') { // whatever } foo("hello", $c="bar"); // we want $b as the default, but specify $c
谢谢
php default-value
default-value ×1
php ×1