Home  >  Article  >  Backend Development  >  函数形参解决方法

函数形参解决方法

WBOY
WBOYOriginal
2016-06-13 10:12:24769browse

函数形参
函数参数类型为类时,指定类型与不指定类型有什么区别?比如有一个con类,function(con $lk);和function($lk);有和区别?

------解决方案--------------------
指定了 就 必须为该类型
不指定 就不必须为该类型.....

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