note 85702 deleted from function.strtotime by derick

From: Date: Sun, 14 Dec 2014 11:23:17 +0000
Subject: note 85702 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201150@lists.php.net to get a copy of this message
Note Submitter: orel16 at ya dot ru ---- I'm find some simple way to find all days between a couple of dates (Все дни между двумя датами): <?php $dt=Array("27.01.1985","12.09.2008"); $dates=Array(); $i=0; while (strtotime($dt[1])>=strtotime("+".$i." day",strtotime($dt[0]))) $dates[]=date("Y-m-d",strtotime("+".$i++." day",strtotime($dt[0]))); foreach ($dates as $value) echo $value."<br />"; ?>

« previous php.notes (#201150) next »