note 76150 deleted from function.date by felipe

From: Date: Sun, 09 Dec 2007 13:32:10 +0000
Subject: note 76150 deleted from function.date by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132988@lists.php.net to get a copy of this message
Note Submitter: tszming at gmail dot com ---- for performance wise, don't call too many date() unless you really need it i.e. don't: $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); but: list($mon, $day, $year) = split("-", date("m-d-Y")); $tomorrow = mktime(0, 0, 0, $mon , $day+1, $year);

« previous php.notes (#132988) next »