note 85245 modified in function.strtotime by felipe

From: Date: Fri, 22 Aug 2008 02:40:46 +0000
Subject: note 85245 modified in function.strtotime by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-143730@lists.php.net to get a copy of this message
An easier way to find the first and last time stamp of any given month. <?php $dat = split(',',date('n,Y')); $first = mktime(0,0,0,$dat[0],1,$dat[1]); $last = mktime(23,59,59,$dat[0]+1,0,$dat[1]); ?> --was-- An easier way to find the first and last time stamp of any given month. $dat = split(',',date('n,Y')); $first = mktime(0,0,0,$dat[0],1,$dat[1]); $last = mktime(23,59,59,$dat[0]+1,0,$dat[1]); http://php.net/manual/en/function.strtotime.php

« previous php.notes (#143730) next »