I'm grabbing a list of tags used on a post with the $posttags
array. In this there's a special tag that I want to store separately: profile-somename
.
How do I:
- Find this special
profile-somename
tag from the list (The value afterprofile-
is dynamic, keeps changing,somename
is just an example) - Strip
profile-
from it and - Store in a separate variable?
Many thanks for your help.