<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Leading Zero for Double Digit Numbers</title>
	<atom:link href="http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Wed, 23 May 2012 11:06:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chakka</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-886</link>
		<dc:creator>Chakka</dc:creator>
		<pubDate>Thu, 01 Dec 2011 05:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-886</guid>
		<description>&lt;a href=&quot;http://ekeral.com&quot; rel=&quot;nofollow&quot;&gt;&lt;?php
for ($num = 1; $num &lt;= 31; $num++)
{
$day = sprintf(&quot;%02d&quot;, $num);
echo &quot;$day&quot;;
}

?&gt;
&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://ekeral.com" rel="nofollow">&lt;?php<br />
for ($num = 1; $num &lt;= 31; $num++)<br />
{<br />
$day = sprintf(&quot;%02d&quot;, $num);<br />
echo &quot;$day&#8221;;<br />
}</p>
<p>?&gt;<br />
</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anneseash</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-860</link>
		<dc:creator>anneseash</dc:creator>
		<pubDate>Fri, 25 Nov 2011 22:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-860</guid>
		<description>Hey, best thread! &lt;a href=&quot;http://matmodel.engr.wisc.edu/cmgwiki/index.php/Good_Ol_Boys_Moving&quot; rel=&quot;nofollow&quot;&gt;Good Ol Boys Moving&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hey, best thread! <a href="http://matmodel.engr.wisc.edu/cmgwiki/index.php/Good_Ol_Boys_Moving" rel="nofollow">Good Ol Boys Moving</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-677</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 12 Aug 2011 20:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-677</guid>
		<description>You&#039;re better off using sprintf() than str_pad(), it&#039;s much faster</description>
		<content:encoded><![CDATA[<p>You&#8217;re better off using sprintf() than str_pad(), it&#8217;s much faster</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-509</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 25 Aug 2010 12:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-509</guid>
		<description>// This logic means day is padded with a zero if it is less than 10...

$day = ($num&lt;10) ? &quot;0$num&quot; : $num;</description>
		<content:encoded><![CDATA[<p>// This logic means day is padded with a zero if it is less than 10&#8230;</p>
<p>$day = ($num&lt;10) ? &quot;0$num&quot; : $num;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andwhyisit</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-486</link>
		<dc:creator>andwhyisit</dc:creator>
		<pubDate>Wed, 30 Jun 2010 04:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-486</guid>
		<description>You are probably better of using str_pad().</description>
		<content:encoded><![CDATA[<p>You are probably better of using str_pad().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ILIAS</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-143</link>
		<dc:creator>ILIAS</dc:creator>
		<pubDate>Fri, 03 Apr 2009 20:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-143</guid>
		<description>&lt;?php
  for ($num = 1; $num &lt;= 31; $num++)
  {
    $day = sprintf(&quot;%02d&quot;, $num);
    echo &quot;&lt;p&gt;$day&lt;/p&gt;&quot;;
  }
  // for more info check this link:
  // http://www.php.net/sprintf
?&gt;</description>
		<content:encoded><![CDATA[<p>&lt;?php<br />
  for ($num = 1; $num &lt;= 31; $num++)<br />
  {<br />
    $day = sprintf(&quot;%02d&quot;, $num);<br />
    echo &quot;&lt;p&gt;$day&lt;/p&gt;&quot;;<br />
  }<br />
  // for more info check this link:<br />
  // <a href="http://www.php.net/sprintf" rel="nofollow">http://www.php.net/sprintf</a><br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhruv singh</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-138</link>
		<dc:creator>dhruv singh</dc:creator>
		<pubDate>Wed, 18 Mar 2009 20:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-138</guid>
		<description>It&#039;s Work it 
Thanks!!!!!!!!!!!!!!!!!!!!</description>
		<content:encoded><![CDATA[<p>It&#039;s Work it<br />
Thanks!!!!!!!!!!!!!!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shamil Nunhuck</title>
		<link>http://newsourcemedia.com/blog/php-leading-zero-for-double-digit-numbers/comment-page-1/#comment-133</link>
		<dc:creator>Shamil Nunhuck</dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-leading-zero-for-double-digit-numbers/#comment-133</guid>
		<description>You&#039;ve forgotten the closed curly bracket, hence you&#039;d get a T_STRING error</description>
		<content:encoded><![CDATA[<p>You&#039;ve forgotten the closed curly bracket, hence you&#039;d get a T_STRING error</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
