Re: Function mktime() documentation question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 11, 2012, at 6:12 AM, Ashley Sheridan wrote:
> 
> I still don't see what's wrong with
> 
> date("t");
> 
> -- 
> Thanks,
> Ash

Ash:

It's just too damn simple -- we need to make things complicated. :-)

Actually, this works for me:

$days_in_month = date('t', mktime(0, 0, 0, $next_month, 0, $year));

But again, I don't see why I have to use "next month" to find the number of days in this month.

O', the mysteries of life.

Cheers,

tedd

_____________________
tedd.sperling@xxxxxxxxx
http://sperling.com






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux