drcmue4619 2012-10-16 22:31
浏览 12

时间函数只返回时间

I know about the php time() function. But I just want it to return the current time. Nothing else.

16:23. No PM, no AM, no date, no seconds. How can I do this?

  • 写回答

1条回答 默认 最新

  • dongrong3171 2012-10-16 22:34
    关注

    You can do this by format characters:

    echo date("H:i");
    

    look here.

    评论

报告相同问题?