php date函数 需要 time函数吗

2025-04-23 04:25:44
推荐回答(2个)
回答1:

time 是可选的, 如果省略 就用当前相同时间,

回答2:

都可以,可以写成date('Y-m-d');也可以写成date('Y-m-d',time());