Snippets tagged “mktime”
1 snippet uses this tag.
- How to get the first day of the current year?PHP
In PHP, you can use the mktime function to get the Unix timestamp of the first day of the current year, then use the date function to format it as a date string.