Getting hash tagged words from a string with PHP
<p>I am trying to create an array of all of the hash tags in a given string and then loop through them and echo each one to show that they have been stored. What could I be doing wrong?</p>

<pre><code>&lt;?php

    $string= "Went for an awesome bike ride today! #biking";

    preg_match_all('/#(\w+)/',$string, $matches);

        foreach ($matches as $tag) {

            echo $tag;

        }

?&gt;
</code></pre>
