RE: [PHP] Month

From: Date: Mon, 19 Feb 2007 18:55:31 +0000
Subject: RE: [PHP] Month
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249038@lists.php.net to get a copy of this message
> -----Original Message----- > From: Dan Shirah [mailto:mrsquash2@gmail.com] > Sent: Monday, February 19, 2007 1:44 PM > To: Jay Blanchard > Cc: php-general > Subject: Re: [PHP] 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)

« previous php.general (#249038) next »