title: PHP parse HTML tags
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php">How to parse and process HTML with PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm pretty new to PHP.
  I have the text of a body tag of some page in a string variable.
  I'd like to know if it contains some tag ... where the tag name tag1 is given, and if so, take only that tag from the string.
  How can I do that simply in PHP?</p>
  
  <p>Thanks!!</p>