title: How to find all instances of certain text pattern and add them to an array in PHP?
body: <p>For example, I have this text:</p>
  
  <pre><code>&lt;content&gt;Foo&lt;/content&gt;This is only a &lt;b&gt;test&lt;/b&gt;&lt;content&gt;Bar&lt;/content&gt;Again, only a test.
  </code></pre>
  
  <p>How can I create an array with two entries, <code>Foo</code> and <code>Bar</code>?</p>