doujiao1814 2019-04-03 21:52
浏览 53
已采纳

PHP我需要在php日期函数中执行此时间戳

I'm trying to do this timestamp in php 2019-02-01T08:21:33+0000.

date("Y-m-d") 

What do i need to add to the function date in order to create this timestamp.

  • 写回答

2条回答 默认 最新

  • douzhi3779 2019-04-03 21:56
    关注

    A look into the docu helps: https://www.php.net/manual/en/function.date.php

    And the solution is:

    date('c')
    

    (with an additional colon)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?