03.08.2017, 13:47
PHP код:
new sFind[][] = {"ą", "ć"};
new sReplace[][] = {"a", "c"};
new sSubject[500] = "Asią byla ćasna.";
printf("Old string: %s", sSubject);
for(new i = 0; i < sizeof(sFind); i++)
{
sSubject = str_replace(sFind[i], sReplace[i], sSubject);
}
printf("New string: %s", sSubject);
Regarding where to find strlib: https://sampforum.blast.hk/showthread.php?tid=85697
To add any other replacements, simply add it to the arrays.