# How to print a 3 characters digit?

**URL:** <https://forum.kirupa.com/t/how-to-print-a-3-characters-digit/132337>\
**Category:** Uncategorized\
**Created:** [December 27, 2004, 4:22pm UTC](https://forum.kirupa.com/t/how-to-print-a-3-characters-digit/132337 "2004-12-27T16:22:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OKtrust](https://avatars.discourse-cdn.com/v4/letter/o/c77e96/32.png) [@OKtrust](https://forum.kirupa.com/u/OKtrust)\
**Post date:** [December 27, 2004, 4:22pm UTC](https://forum.kirupa.com/t/how-to-print-a-3-characters-digit/132337/1 "2004-12-27T16:22:15Z")

</div>

hi all,  
I have this code:

```php

<?
for ($i=001; $i <= 200; $i++) {
echo ("$i <br>");
}
 ?>

```

and I want it will print from 001 to 200 (not 1 to 200)  
how do I do it guys ? thanks

and here is my gift for you if you solve that problem:

```php

<?
for ($i=001; $i <= 200; $i++) {

echo ("<a href='http://www.dns.tlw.cn/1/JPEG640/013/151_200/SM'.$i.'_L.jpg'> http://www.dns.tlw.cn/1/JPEG640/013/151_200/SM".$i."_L.jpg</a> </br>");
}
?>

```
