The example usage of default in the video personally feels a bit inappropriate.
其铭
其铭 2020-05-28 17:18:33
0
1
1410

$Request.get.id|get_hiredate|date='Y-m-d',

|default='1987-08-04' If the id is passed in, there is also an existing value in front of default; if Passing an id that does not exist. If the second parameter of the date function is null, it will return 1970-01-01. The subsequent default value will never be executed. It just happens to be 1970-01-01 in the video ###
其铭
其铭

reply all (1)
其铭

Entry time{$Request.get.id|get_hiredate|default=strtotime('1987-08-04')|date='Y-m-d',

} This seems to work###
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!