Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
strReplace
« previous
next »
Print
Pages: [
1
]
Author
Topic: strReplace (Read 455 times)
jes00
January 21, 2012, 03:35:45 PM
Could someone tell me how strReplace works please?
Ad Bot
Advertisement
otto-san
January 21, 2012, 03:40:19 PM
StrReplace replaces all occurrences of searchString with replaceString.
strReplace(%sourceString, %searchString, %replaceString);
ie
%str = "turtles rule";
%str = strReplace(%str, "turtles", "ducks");
echo(%str); //would echo "ducks rule".
It's case-sensitive,
however Truce made a non-case-sensitive version
.
«
Last Edit: January 21, 2012, 03:43:29 PM by otto-san
»
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
strReplace