note 88606 deleted from function.strtotime by danbrown

From: Date: Sat, 31 Jan 2009 18:07:00 +0000
Subject: note 88606 deleted from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150040@lists.php.net to get a copy of this message
Note Submitter: lox at gecka dot nc ---- Zoe Blade, you should have take care of rtwolf comment below. For exemple, today (2009-01-31) : <?php echo date('Y-m-01', strtotime('next month'); ?> will output 2009-03-01 and not 2009-02-01. So to have the number of days left in the month: <?php $daysLeftInMonth = ceil( ( strtotime("+1 month", strtotime(date("F") . "1")) - time() )/86400 ); ?> My two cents.

« previous php.notes (#150040) next »