Valid date

From: Date: Mon, 21 Apr 2003 13:42:38 +0000
Subject: Valid date
Groups: php.general 
Request: Send a blank email to php-general+get-144634@lists.php.net to get a copy of this message
Hi, using the following script how can i make sure that the date output is always a valid date? $date = '2003-4-23'; $i = 0; while ($i < 10){ $date++; echo "$date<br>"; $i++; } Thanks for your help.

« previous php.general (#144634) next »