php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
2021-01-04 19:27
阅读:612
标签:html int targe oat oob www 新特性 特性 ring
php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
在PHP7,一个新的功能,返回类型声明已被引入。返回类型声明指定的一个函数返回值的类型。
- int
- float
- bool
- string
- interfaces
- array
- callable
- 对象实例
参考:https://www.runoob.com/php/php-scalar-return-type.html
php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
标签:html int targe oat oob www 新特性 特性 ring
原文地址:https://www.cnblogs.com/makalochen/p/14216214.html
下一篇:web测试06
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
文章链接:http://soscw.com/index.php/essay/40101.html
文章标题:php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
文章链接:http://soscw.com/index.php/essay/40101.html
评论
亲,登录后才可以留言!