note 97446 deleted from function.strtotime by derick

From: Date: Sun, 14 Dec 2014 11:33:20 +0000
Subject: note 97446 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201163@lists.php.net to get a copy of this message
Note Submitter: ariunbayar ---- if you looking for next 31 here it is for PHP5.3 <?php $d = 31; $now = strtotime('2010-06-02'); while (date('t', $now) < $d){ $now = strtotime('last day of next month', $now); } echo date('Y-m-'.$d, $now); ?> will output "2010-07-31".

« previous php.notes (#201163) next »