<?php $string= "Went for an awesome bike ride today! #biking #awesome"; preg_match_all('/#(\w+)/',$string, $matches); foreach ($matches[1] as $tag) { echo $tag; }
You have javascript disabled. You will not be able to edit any code.