Re: Code check

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

 



Paul Goepfert wrote:
... What this script does is selects tomorrows date...

Here is a one-line way to find the month and day of tomorrow:

<?php
list($tomorrow_month, $tomorrow_day) = split(':', date('m:d', time()+86400));
?>

Test that ... I just wrote it off the top of my head. Maybe that will simplify your code.

Dante

--
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