日期與時間函式庫

strtotime

(PHP3 >= 3.0.12 , PHP4 >= 4.0b2)

strtotime ---  剖析任何英文的日期時間成為UNIX時間戳記

語法 : int strtotime (string time [, int now])

說明 : 

給予此函式一包含英文日期格式的字串,將會試著去剖析此字串成為UNIX時間戳記

Example :

<?php

   echo strtotime ("10 march 2000") . "\n";

?>


上一頁 首頁