title: How can I extract all text between brackets in a PHP DocComment?
body: <p>Let's say my DocComment looks like this:</p>
  
  <pre><code>/** 
   *  [Test] 
   *  [AnotherTest]
   */
  </code></pre>
  
  <p>What I want to end up with is an array that contains "Test" and "AnotherTest"</p>
  
  <p>I know how to retrieve the DocComment using Reflection, I'm just not sure how I can parse those values out cleanly. What is the best way to achieve this?</p>