str_replace - detect more than one character
#1

Hi guys,
i have a question: Is there a way to detect more than one letter/character with str_replace? I need to replace characters like "д", "ц" and "ь" and i don't know how to do that in just one "str_replace" :/

Can u help me?

- Macronix
Reply
#2

new
sSearch[] = "д", "ц", "ь",
sReplace[] = "a", "o", "u",
sSubject[] = "";


print("%s", str_replace(sSearch, sReplace, sSubject));





Try it, untested and idk if it works. If it doesn't I am sorry
Reply
#3

Thanks, but it doesn't work :/
It says "error 020: invalid symbol name "" " and " error 021: symbol already defined: "" "
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)