Home >Backend Development >PHP Tutorial >函数的实参可以多于形参,这有什么用?该怎么解决

函数的实参可以多于形参,这有什么用?该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:25:001465browse

函数的实参可以多于形参,这有什么用?

<br />function test($date, $value) {<br />    echo "$date $value";<br />}<br /><br />$date = "9月18号";<br />$value = "100";<br />$y = "2";<br />test($date, $value, false);<br />

函数的实参可以多于形参,这有什么用?
------解决思路----------------------
对于你的设计,多的没有用!
------解决思路----------------------
好像并没有什么卵用

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn