note 94491 modified in function.date-diff by danbrown

From: Date: Sun, 08 Nov 2009 16:15:34 +0000
Subject: note 94491 modified in function.date-diff by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162637@lists.php.net to get a copy of this message
You can also leave out the "else" part of the first if-statement, and change the line: <?php $arrTimes = array(0, 12, date("t", $temp), 24, 60, 60); ?> to <?php $arrTimes = array(0, 12, date("t", $ts1), 24, 60, 60); ?> as $temp will always be $ts1 >> Special thanx to Tobias for sending me the tip << --was-- You can also leave out the "else" part of the first if-statement, and change the line: $arrTimes = array(0, 12, date("t", $temp), 24, 60, 60); to $arrTimes = array(0, 12, date("t", $ts1), 24, 60, 60); as $temp will always be $ts1 >> Special thanx to Tobias for sending me the tip << http://php.net/manual/en/function.date-diff.php

« previous php.notes (#162637) next »