title: Converting HTML string to PHP array
body: <p>Assuming an HTML string like this:</p>
  
  <pre><code>$str = '&lt;p&gt;Hello World!&lt;/p&gt;&lt;p style="text-align:center"&gt;&lt;img src="foo.png" /&gt;&lt;br /&gt;&lt;/p&gt;';
  </code></pre>
  
  <p>It is possible to convert it into an array like this?</p>
  
  <pre><code>[0] =&gt; '&lt;p&gt;Hello World!&lt;/p&gt;'
  [1] =&gt; '&lt;p style="text-align:center"&gt;'
  [2] =&gt; '&lt;img src="foo.png" /&gt;'
  [3] =&gt; '&lt;br /&gt;'
  [4] =&gt; '&lt;/p&gt;'
  </code></pre>
  
  <p>I tried using DOMDocument many different ways but the problem seems to always boil down to parenting. I need to traverse the HTML without regard for parent/child relationships.</p>