Re: what is %s %d
| From: | Jackson Miller | Date: | Tue, 12 Aug 2003 02:48:18 +0000 |
| Subject: | Re: what is %s %d | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159225@lists.php.net to get a copy of this message | ||
They are codes for date formatting.
Specifically:
%s represents seconds with leading zeros.
%d represents day of the month with leading zeros
so
date("%s %d",mktime());
would equal something like
59 08
you can find all the date codes at http://php.net/date
-Jackson
P.S. I hope you at least tried to look this up.
On Monday 11 August 2003 9:36, pehepe php wrote:
> what is %s and %d I see these in php tutorials. These are used in
> printing data from database but I don't know why we use %s and %d. And is
> there any expressions like this? Thank you for your answers.
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
--
jackson miller
cold feet creative
615.321.3300 / 800.595.4401
jackson@coldfeetcreative.com
cold feet presents Emma
the world's easiest email marketing
Learn more @ http://www.myemma.com