RE: A relative date puzzle

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

 



> Thanks for this - I'll experiment and see if I have it.  Basically I never
> read the strtotime doc close enough to get past the word "now" in the
> syntax.  Obviously it is EXACTLY what I needed.

$var = strtotime('now');

Is the same as

$var = time();

Unless of course, I didn't understand what you're referring too :P

But strtotime() is a very useful function, unless of course you want the OO
stuff ;)


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