RE: [PHP] A relative date puzzle
| From: | Steven Staples | Date: | Mon, 01 Apr 2013 20:45:08 +0000 |
| Subject: | RE: [PHP] A relative date puzzle | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320729@lists.php.net to get a copy of this message | ||
> 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 ;)