Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

PHP获取当前年份/年月日 简单代码

 Share


KaiWn

Recommended Posts

  • 以下PHP代码可获取当前年份,具体显示比如:2022

    <?php echodate('Y'); ?>

     

    以下PHP代码可获取当前年份,具体显示比如:22

    <?php echodate('y'); ?>

     

    以下PHP代码可获取当前具体年月,具体显示比如:2022年2月1日

    <?php echodate("d-m-Y") ?>

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...