原创 PHP——時間格式轉換

準備函數:strtotime(String) php中將日期轉變爲時間戳的函數。 參數:日期字符串 返回:時間戳 示例: <?php echo strtotime("2016-05-04 00:00:00"); ?>輸出結果:14623