<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022813" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022813</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140835</link>
    <description> &lt;p&gt;your the man Mark thanks for this recall of the c syntax that i forgot &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Nov 2003 13:33:47 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1140835 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140820</link>
    <description> &lt;p&gt;Even better:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$TheFile &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;sprintf&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;file%3d.%s\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Nov 2003 06:33:06 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1140820 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140809</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.php.net&quot; class=&quot;bb-url&quot;&gt;php.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;bokmark it.&lt;br /&gt;
always go there first for php questions. chances are it has the answer. if that doesn&#039;t succeed ask for clarificaton here or at the dev net (linked to there)&lt;/p&gt;
&lt;p&gt;dev net seemsfaster but same quality for php responses. this is bettter for everything else. &lt;/p&gt;
&lt;p&gt;they are by far the best stes i&#039;ve found for help&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Nov 2003 03:20:08 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1140809 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140578</link>
    <description> &lt;p&gt;Thank you very much!&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Nov 2003 04:42:27 +0000</pubDate>
 <dc:creator>Jan</dc:creator>
 <guid isPermaLink="false">comment 1140578 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140576</link>
    <description> &lt;p&gt;yes better then the one i gave you i just was too leazy to search for syntax&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Nov 2003 04:31:48 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1140576 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140575</link>
    <description> &lt;p&gt;Thank you for your help. I&#039;m a PHP beginner and I came across the following solution which seems to work:&lt;/p&gt;
&lt;p&gt;$i=str_pad($i,3, &quot;0&quot;,STR_PAD_LEFT);&lt;/p&gt;
&lt;p&gt;Is this a good solution? I am eager to learn!&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Nov 2003 04:23:10 +0000</pubDate>
 <dc:creator>Jan</dc:creator>
 <guid isPermaLink="false">comment 1140575 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/3-digit-number-php#comment-1140574</link>
    <description> &lt;p&gt;you have to use a string since int are alway striped of there 0&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$ext = &amp;quot;txt&amp;quot;;&lt;br /&gt;for($i=1;$i&amp;lt;500;$i++)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; if($i&amp;gt;=100)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $zero=&amp;quot;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; else if ($i&amp;gt;=10)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $zero=&amp;quot;0&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $zero=&amp;quot;00&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; $TheFile = &amp;quot;file&amp;quot;.$zero.$i.$ext&amp;quot;;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Nov 2003 04:15:25 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1140574 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
