title: Identify HTML tag at start of string and remove it
body: <p>I want to get html tag in string at starting position and remove it from the string</p>
  
  <p>my demo strings are below:</p>
  
  <pre><code>&lt;I&gt;little willingness&lt;/I&gt; that, as the Course itself was to emphasise
  </code></pre>
  
  <p>this will return  <code>&lt;I&gt;</code> tag as o/p</p>
  
  <pre><code>&lt;p&gt;little willingness&lt;/p&gt; that, as the Course itself was to emphasise
  </code></pre>
  
  <p>this will return  <code>&lt;p&gt;</code> tag as o/p</p>
  
  <pre><code>little willingness that, &lt;p&gt;as the Course itself was to emphasise&lt;/p&gt;
  </code></pre>
  
  <p>this will return me null as o/p</p>
  
  <p>How do I modify my code below to check only for HTML tags at the start of the line and then remove them?</p>
  
  <pre><code>preg_match("/&lt;[^&lt;]+&gt;/",$string,$m);
  </code></pre>