note 107986 added to function.strtotime
| From: | Miro at w3 | Date: | Tue, 20 Mar 2012 13:18:27 +0000 |
| Subject: | note 107986 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186743@lists.php.net to get a copy of this message | ||
Note that a space character is valid date/time format when using this function.
So this:
<?php
print(strtotime(' '));
?>
will print the current timestamp.
But empty string is not valid; this function will return false in that case.
----
Server IP: 80.81.171.181
Probable Submitter: 188.117.0.66
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/107986
Del: integrated -- https://master.php.net/note/delete/107986/integrated
Del: useless -- https://master.php.net/note/delete/107986/useless
Del: bad code -- https://master.php.net/note/delete/107986/bad+code
Del: spam -- https://master.php.net/note/delete/107986/spam
Del: non-english -- https://master.php.net/note/delete/107986/non-english
Del: in docs -- https://master.php.net/note/delete/107986/in+docs
Del: other reasons-- https://master.php.net/note/delete/107986
Reject -- https://master.php.net/note/reject/107986
Search -- https://master.php.net/manage/user-notes.php