title: Getting DOM elements by classname
body: <p>I'm using <a href="http://www.php.net/manual/en/book.dom.php" rel="noreferrer">PHP DOM</a> and I'm trying to get an element within a DOM node that have a given class name.  What's the best way to get that sub-element?</p>
  
  <p><strong>Update:</strong> I ended up using <code>Mechanize</code> for PHP which was much easier to work with.</p>