RE: Month

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Dan Shirah [mailto:mrsquash2@xxxxxxxxx]
> Sent: Monday, February 19, 2007 1:44 PM
> To: Jay Blanchard
> Cc: php-general
> Subject: Re:  Month
> 
> Okay, so sprintf("%02s", $m) means that the value of $m would be checked
> for
> the amount of digits returned.  If less than two digits a zero would be
> added to the front, correct?

Yes.

% = start of format string
0 = padding specifier
2 = width specifier
s = type specifier (string)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux