方法名相同,通过参数个数来区分 <?phpclass A{public function show();public function show($num);public function show($num,$num1);}?> 不过PHP不支持方法重载,其他语言支持。