gmmktime(hour,minute,second,month,day,year,is_dst);
hour - 指定小時。
- 指定分鐘
傳回
<?php $time = gmmktime(0,0,0,9,10,2017); print($time . "</p><p>"); ?>
1505001600
<?php echo "Nov 10, 2017 was on a ".date("l", gmmktime(0,0,0,11,10,2017)); ?>
輸出
Nov 10, 2017 was on a Friday
以上是在PHP中的gmmktime()函數的詳細內容。更多資訊請關注PHP中文網其他相關文章!