note 100336 deleted from function.strtotime by danbrown

From: Date: Mon, 20 Jun 2011 14:58:57 +0000
Subject: note 100336 deleted from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180699@lists.php.net to get a copy of this message
Note Submitter: vorapoap at yahoo dot com ---- This maybe useful to someone.. for example, to find the list of Monday during specific period Thanks to Ivan P. from vark.com to point me here. <?php function findday($w, $b, $e) { //$b and $e is timestamp, $w is any day word Monday,..Sunday $cur = $b; $list = array(); $c =0; $cur = $b; while ($cur <= $e) { $list[] = date("Y-m-d", strtotime("next ".$wd, $cur)); $cur += (24*3600*7); } return $list; } ?>

« previous php.notes (#180699) next »