I've got a string that is 8-9 for example, and I'd like to convert it to 8'9, so I'll use
Code: Select all
str_replace("-", "'", $string);So my question is, since the "-" sign that I'd like to change would only appear between two other numbers, what wild card can I use to make the code functional...
for example if "*" was a wild card I could just use
Code: Select all
str_replace("*-*", "'", $string);Cheers, and thanks in advance for the help