note 34740 added to function.getdate

From: Date: Tue, 05 Aug 2003 14:51:40 +0000
Subject: note 34740 added to function.getdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-53416@lists.php.net to get a copy of this message
The following I found does not work to zero-fill: if ($current["minutes"] < 10) { $current["minutes"] = "0" . $current["minutes"]; } All it does is make it 0 and not add a zero. ---- Manual Page -- http://www.php.net/manual/en/function.getdate.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34740 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34740&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34740&report=yes

« previous php.notes (#53416) next »