函数形参解决方法

WBOY
Release: 2016-06-13 10:12:24
Original
741 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!