if you want to do as you're doing this will do:
> if ($month < 10) {
> $month = "0$month";
> if ($date < 10) {
> $date = "0$date";
"Daniel alsén" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> is there a easier way to add zeros to date than the scri
Use the date-function. See help for details.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
2 matches
Mail list logo