note 94491 deleted from function.date-diff by danbrown
| From: | danbrown@php.net | Date: | Sun, 08 Nov 2009 16:19:50 +0000 |
| Subject: | note 94491 deleted from function.date-diff by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162642@lists.php.net to get a copy of this message | ||
Note Submitter: ron dot wiegman at gmail dot com
----
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 <<