title: PHP regex groups captures
body: <p>I have the following regex:</p>
  
  <pre><code>\[([^ -\]]+)( - ([^ -\]]+))+\]
  </code></pre>
  
  <p>This match the following successfully:</p>
  
  <pre><code>[abc - def - ghi - jkl]
  </code></pre>
  
  <p>BUT the match is:</p>
  
  <pre><code>Array
  (
      [0] =&gt; [abc - def - ghi - jkl]
      [1] =&gt; abc
      [2] =&gt;  - jkl
      [3] =&gt; jkl
  )
  </code></pre>
  
  <p>What I need is something like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; [abc - def - ghi - jkl]
      [1] =&gt; abc
      [2] =&gt;  - def
      [3] =&gt; def
      [4] =&gt;  - ghi
      [5] =&gt; ghi
      [6] =&gt;  - jkl
      [7] =&gt; jkl
  )
  </code></pre>
  
  <p>I'm able to do that in C# looking at the groups "captures". How can I do that in PHP?</p>