title: PHP add tag after x words
body: <p>I'm looking for a php function to insert a span tag after the 2 first words on a string but ignore some words.</p>
  
  <p>For example, ignore the words : "One", "Two", "Three" ... and add a span after the 2 next words.</p>
  
  <pre><code>//"ONE" IS IGNORED, SPAN ADDED ON THE NEXT 2 WORDS
  $string="One example text bla bla bla";
  $output="One example text &lt;span&gt;bla bla bla&lt;/spa&gt;";
  
  //String added after the second word
  $string="Another example text bla bla bla";
  $output="Another example &lt;span&gt;text bla bla bla&lt;/spa&gt;";
  </code></pre>
  
  <p>Thanks for your help</p>