Re: get the month's last day

From: Date: Sat, 10 Jul 2004 03:35:03 +0000
Subject: Re: get the month's last day
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190126@lists.php.net to get a copy of this message
Sheawh wrote:
how can i retrieve the last day of the month? like 31 - Jul, 30 - Jun , 28 - Feb
<?php $month = 8; $year = 2003; $lastdayofmonth = mktime(12,0,0,$month+1,0,$year); ?> -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#190126) next »