Quick question,
I have the following string which is a coma separated list of tags:
$tagcap = "tag1, tag2, tag3";
How do I go about obtaining a single string that looks like this:
$string = "#tag1, #tag2, #tag3;
In other words, simply adding # in front of each word?
Thanks!
Edit:
Thanks a lot, that seems perfect except it also adds a # infront of words with hyphens, for example: self-shot becomes #self-#shot, how can I fix this?
Edit 2: Thanks for fast help guys, issue fixed!