The document shows that new is after the period. What's going on?
认证高级PHP讲师
new with parameter list (new Date())跟成员访问(.)同个优先级,.按左往右执行;不带参数列表的(new Date) is one level lower.
new Date()
.
new Date
new with parameter list (
new Date()
)跟成员访问(.
)同个优先级,.
按左往右执行;不带参数列表的(new Date
) is one level lower.