note 50251 added to function.strtotime

From: Date: Wed, 23 Feb 2005 04:12:13 +0000
Subject: note 50251 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-85397@lists.php.net to get a copy of this message
This function will return an array containing the months between two dates: function get_months ( $start, $end ) { while ( strtotime($start) <= strtotime($end) ) { $months[] = date("F, Y", strtotime( "$start" ) ); $start = date("Y-m-d", strtotime( "$start + 1 months")) ; } return $months; } ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50251 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50251&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50251&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50251&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50251&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50251&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50251&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85397) next »