1
gongpeione 2017 年 6 月 11 日
http://php.net/manual/en/functions.arguments.php Type declarations
|
2
jellybool 2017 年 6 月 11 日
我觉得 1 楼的并不是正路
关键字是:Type Hinting (php 类型约束 ) 个人推荐看这个 http://php.net/manual/en/language.oop5.typehinting.php 简单理解就是:$request 必须是 Request 的一个实例,$response 同理。 |
3
Jakesoft 2017 年 6 月 11 日
这跟 slimphp 有什么关系
|
4
Jakesoft 2017 年 6 月 11 日
这应该是 php 基础语法吧
|
6
Pastsong 2017 年 6 月 11 日
@jellybool 你给的链接还是跳到 1 楼的了 [Facepalm]
给个中文的 http://php.net/manual/zh/functions.arguments.php#functions.arguments.type-declaration |
7
sanorchid OP 谢谢大家
|
8
miaotaizi 2017 年 6 月 12 日
可以先看看这些个东西, 理解里面的一些术语
https://laravel-china.github.io/php-the-right-way/ |