久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php怎么使用date()獲得當(dāng)前是幾號

      在php中,只需要設(shè)置date()函數(shù)內(nèi)包含一個參數(shù),且參數(shù)值為“d”即可獲取當(dāng)前時間是幾號。date()函數(shù)可格式化當(dāng)前本地時間或指定時間戳(設(shè)置第二個參數(shù)時),當(dāng)必需參數(shù)設(shè)置為“d”時,可計算出指定時間是一個月中的第幾天。

      php怎么使用date()獲得當(dāng)前是幾號

      本教程操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      php使用date()獲得當(dāng)前是幾號

      <?php header("Content-type:text/html;charset=utf-8"); echo '當(dāng)前是:'.date("d")."號"; ?>

      輸出:

      php怎么使用date()獲得當(dāng)前是幾號

      php怎么使用date()獲得當(dāng)前是幾號

      說明:

      date() 函數(shù)格式化本地日期和時間,并返回已格式化的日期字符串。

      語法:

      date(format,timestamp);
      • format 必需參數(shù),規(guī)定輸出日期字符串的格式;當(dāng)值為“d”時,輸出一個月中的第幾天(從 01 到 31)。

      • timestamp 可選。規(guī)定整數(shù)的 Unix 時間戳。默認(rèn)是當(dāng)前的本地時間(time())。

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號