'.$matches[0].''; } $output = preg_replace_callback("/([@][-_a-zA-Z-0-9]+)/", "replace_at_symbol", $text); echo $output; ?>