printf %.4f for IP?
<p>I would like to print an IP in fixed way.. example </p>

<p>12.12.1.0</p>

<p>would tured to</p>

<p>012.012.001.000</p>

<p>what's the best method do it ?</p>

<p><code>printf("%.4f.%.4f.%.4f.%.4f",$ip);</code> ?</p>
