title: PHP: count amount of tabs at the beginning of a string
body: <p>Ok basically I have a string which could be anything but for the purposes of the question it is:</p>
  
  <pre><code>    Hello World 
  </code></pre>
  
  <p>As you can see it has been indented twice at the beginning and once at the end.
  Is there a way to count the amount of tabs <code>\t</code> only at the beginning of the string with PHP?</p>
  
  <p>Cheers Franky</p>