[PHP-NOTES] note 130592 added to function.strtotime
[email protected] ("Anonymous") Mon, 22 Dec 2025 12:49:40 +0000
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
This is useful for relative date calc. Like:
<?php
echo date('Y-m-d', strtotime('first day of this month'));
?>
2025-12-01
----
Server IP: 206.189.2.9
Probable Submitter: 2600:4041:5627:c00:35db:b4fc:4688:3b4c
----
Manual Page -- https://php.net/manual/en/function.strtotime.php
Edit -- https://main.php.net/note/edit/130592
Del: integrated -- https://main.php.net/note/delete/130592/integrated
Del: useless -- https://main.php.net/note/delete/130592/useless
Del: bad code -- https://main.php.net/note/delete/130592/bad+code
Del: spam -- https://main.php.net/note/delete/130592/spam
Del: non-english -- https://main.php.net/note/delete/130592/non-english
Del: in docs -- https://main.php.net/note/delete/130592/in+docs
Del: other reasons-- https://main.php.net/note/delete/130592
Reject -- https://main.php.net/note/reject/130592
Search -- https://main.php.net/manage/user-notes.php