title: How do I extract words starting with a hash tag (#) from a string into an array
body: <p>I have a string that has hash tags in it and I'm trying to pull the tags out I think i'm pretty close but getting a multi-dimensional array with the same results</p>
  
  <pre><code>  $string = "this is #a string with #some sweet #hash tags";
  
       preg_match_all('/(?!\b)(#\w+\b)/',$string,$matches);
  
       print_r($matches);
  </code></pre>
  
  <p>which yields</p>
  
  <pre><code> Array ( 
      [0] =&gt; Array ( 
          [0] =&gt; "#a" 
          [1] =&gt; "#some"
          [2] =&gt; "#hash" 
      ) 
      [1] =&gt; Array ( 
          [0] =&gt; "#a"
          [1] =&gt; "#some"
          [2] =&gt; "#hash"
      )
  )
  </code></pre>
  
  <p>I just want one array with each word beginning with a hash tag.</p>