title: PHP equivalent to jQuery addClass
body: <p>How would you add a class named <code>newClass</code> to an <strong>opening</strong> tag like <code>&lt;a class='abc'&gt;</code> or <code>&lt;p style=display:block&gt;</code> using php?</p>