【问题标题】:php - make date 'D' a full wordphp - 使日期'D'成为一个完整的单词
【发布时间】:2016-07-01 03:51:24
【问题描述】:

例如,我输入一个日期并获取该值

2016-07-07

然后传递值

$c = $_POST['c']

但我只想获得当天的完整词。例如,产生Thu 而不是Thursday 有什么办法吗?这是我的代码$cc = date('D', strtotime($c));

【问题讨论】:

    标签: php date strtotime


    【解决方案1】:

    以前从未感到如此尴尬。我用这个site

    我只是改变了

    $cc = date('D', strtotime($c));
    

    到

    $cc = date('l', strtotime($c));
    

    【讨论】:

    • 嘿嘿嘿我被所说的弄糊涂了。 A full textual representation of the day of the week 我期待像 A full textual representation of the day 这样的事情,我已经醒了 50 个小时,所以我对不当行为感到非常抱歉
    猜你喜欢
    • 1970-01-01
    • 2021-02-18
    • 1970-01-01
    • 2019-04-11
    • 2021-12-24
    • 1970-01-01
    • 2018-04-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多