How do I get all height values from a string with php?
<p>Users can enter text for a piece of content using WYSIWYG which is placed into the variable $body.  This may include multiple instances of <code>style="[maybe stuff] height:xpx [maybe stuff]"</code> or <code>height="xpx"</code>.  </p>

<p>I need to get all of the height values that exist (the numbers only) so that I can add them together.</p>

<p>Note there may be other integer values within the string so it can't just grab all integers.</p>

<p>If the solution uses regex, I have never been able to understand it and I understand there are security issues with regex, so ideally I'm looking for a safe solution!</p>

<p>I'm certain this must be quite simple but I'm struggling!</p>
