Add a leading zero
| From: | Shaun | Date: | Wed, 24 Sep 2003 12:40:41 +0000 |
| Subject: | Add a leading zero | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163719@lists.php.net to get a copy of this message | ||
Hi,
How can i add a leading zero to the first result of this loop so that i get
00, 15, 30, 45?
<select name="start_date_minute">
<?php
$i = 0;
while ($i <= 45){
echo '<option
value="'.$i.'">'.$i.'</option>';
$i+=15;
}
?>
Thanks for your help