How to keep leading zeros when subtracting 2 numbers in PHP?
<p>This:</p>

<pre><code>$difference = 05-1;
</code></pre>

<p>results in</p>

<pre><code>4
</code></pre>

<p>same if I do this:</p>

<pre><code>$difference = 05-01;
</code></pre>

<p>is there a inbuilt way to subtract while keeping leading zeros? I know I can check to see if the difference has only 1 character or not and if so add a leading zero but was just wondering if there is a default way to get the result back with 0 already in it.</p>
