title: Convert days to two digits format
body: <p>Below i have defined the day range</p>
  
  <pre><code>$days = range(1, 31);
  </code></pre>
  
  <p>How can we loop through using this range to get the values of days in 01,02,03 like format in a dropdown list</p>
  
  <p>Tried this</p>
  
  <pre><code>foreach ($days as $value) {
      echo '&lt;option value="' . $value . '"&gt;' . $value . '&lt;/option&gt;\n';
  }
  </code></pre>