久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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怎樣把日期轉(zhuǎn)成時間戳

      php把日期轉(zhuǎn)成時間戳的方法:可以利用strtotime()函數(shù)來實現(xiàn)。strtotime()函數(shù)可以將任何字符串的日期時間描述解析為Unix時間戳,若成功則返回時間戳,失敗則返回false。

      php怎樣把日期轉(zhuǎn)成時間戳

      strtotime() 函數(shù)將任何字符串的日期時間描述解析為 Unix 時間戳,成功則返回時間戳,失敗則返回 FALSE。

      (推薦教程:php圖文教程)

      語法:

      int strtotime ( string $time [, int $now = time() ] )

      參數(shù):

      • time 必需。規(guī)定日期/時間字符串。

      • now 可選。規(guī)定用來計算返回值的時間戳。如果省略該參數(shù),則使用當(dāng)前時間。

      (視頻教程推薦:php視頻教程)

      舉例:

      <?php // 設(shè)置時區(qū) date_default_timezone_set("PRC"); $time = strtotime("2018-01-18 08:08:08"); // 將指定日期轉(zhuǎn)成時間戳  // 打印當(dāng)前時間  PHP_EOL 換行符,兼容不同系統(tǒng) echo  $time, PHP_EOL; // 

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