1. ```
//讓PHP腳步一直執行下去,用戶關閉瀏覽器,腳本仍然在運行
ignore_user_abort();
```
2.microtime(true)
帶參數true表明只返回一個浮點數(即秒數),不帶參數返回一個微秒+秒的字符串
3.sleep() 函數延遲執行當前腳本若干秒
4.strtotime 把指定日期轉為時間戳
$start = strtotime(date('Y-m-d').' 00:0:00');
$end = strtotime(date('Y-m-d').' 23:57:00');