Home >Backend Development >PHP Tutorial > CodeIgniter PHP 两个时间对比有关问题

CodeIgniter PHP 两个时间对比有关问题

WBOY
WBOYOriginal
2016-06-13 12:33:16762browse

CodeIgniter PHP 两个时间对比问题
写一个20131010 日期

然后在获取系统现在时间 假如现在时间为 20131113

再是怎么用CodeIgniter 获取系统当前时间?



如果20131010 日期 和20131113 比较


if(){
  alert(  现在日期在10天内)
}else if(){
  alert(现在日期已经超过10了);
}

用PHP 代码怎么实现?

求大虾 出手帮忙

codeigniter php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn