php remove all 0's from start of string - could be an unknown amount
<p>I have a telephone verification system in place. This allows the customer to enter a phone number. However, how can I remove all <code>0</code>'s from the start of the string?</p>

<p>For example I could use <code>substr</code> to remove one or two <code>0</code>'s but what if the customer enters ten or twelve of them?</p>

<p>i.e The customer could enter one of the following numbers:</p>

<ul>
<li>077223704750 </li>
<li>0077223704750 </li>
<li>00000077223704750 </li>
<li>0000000000077223704750`</li>
</ul>

<p>How can I remove all <code>0</code>'s from the start only, not from the rest of the string?</p>
