Skip to content

Instantly share code, notes, and snippets.

@TimWolla
Created February 3, 2013 12:09
Show Gist options
  • Save TimWolla/4701541 to your computer and use it in GitHub Desktop.
Save TimWolla/4701541 to your computer and use it in GitHub Desktop.
Easily find out timestamp of first and last second of last month in PHP.
<?php
$start = strtotime('first day of last Month 00:00:00');
$end = strtotime('last day of last month 23:59:59');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment