working with php decbin function
<p>I'm so new in php. I want to ask for decbin function in PHP <br>
let say I have this code :</p>

<pre><code> &lt;?php
    $input= 8;
    for($i=0;$i&lt;$input ; $i++){  
     echo decbin($i)."&lt;br&gt;";
    }
 ?&gt;
</code></pre>

<p>then the output will be like this: <br></p>

<pre><code>0 
1
10
11
100
101
110
111
</code></pre>

<p>But I want to make the output like this<br></p>

<pre><code>000
100
100
110
100
101
110
111
</code></pre>

<p>Any suggested for this?</p>
