3
我刚开始学习PHP,我对参数有一些疑问。 考虑DateTime class
PHP DateTime Class Manual基本参数问题
public __construct ([ string $time = "now" [, DateTimeZone $timezone = NULL ]])
public DateTime setDate (int $year , int $month , int $day)
我的问题是:
- 为什么在构造函数中的参数在括号时
setDate
参数不括号? - 为什么支架内有支架?
- 为什么在开括号前有逗号,
[,
?
在此先感谢。