RE: [PHP] A relative date puzzle
[email protected] ("Steven Staples")
| Newsgroups | php.general |
|---|---|
| Message-ID | <024c01ce2f19$cc3a6530$64af2f90$@net> |
> 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 ;)