PHP今天0点UNIX时间戳

今天0点表示,方法一:

$today = mktime(0, 0, 0, date('m', time()), date('d', time()), date('Y', time()));

方法二:

strtotime(date('Y-m-d', time());

方法三:

strtotime("today");

相关文章:

1、CentOS 7.x 系统yum环境搭建PHP 7.x + Apache 2.4 + MariaDB 10.x
https://www.onexin.net/solution/centos-7-x-php-7-x-apache-2-4-mariadb-10-x/

2、SWOOLE HOOK CURL 同步IO变异步IO
https://www.onexin.net/latest/swoole-hook-curl/

3、CentOS 8.2 服务器上yum安装Apache+Php+MariaDB+MongoDB
https://www.onexin.net/latest/centos-8-2-yum-apache-php-mariadb-mongodb/

4、PHP描述冒泡排序和快速排序算法
https://www.onexin.net/languages/php-description-of-bubble-sort-and-quicksort-algorithm/

5、用C/C++扩展你的PHP 为你的php增加功能
https://www.onexin.net/languages/cc-extensions-your-php-to-add-functionality-to-your-php/

转载请注明出处:https://www.onexin.net/labs/php-0-clock-today-unixtime/

Leave a Reply

Your email address will not be published. Required fields are marked *