I would use explode() to split the string at the dashes into an array. I would then use string concatenation (the "." operator) to put the string back together from the parts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.