STRING strsub(STRING str, STRING what, STRING replace[, STRING flags])
This function searches for occurances of the string what within the string str and replaces them with replace. By default it will replace any occurance, and will do case-insensitive comparisons. The optional fourth argument can be any of the following characters within the string:
g Match globally througout the string (default) s Single match--Match the first occurance only c Case matters when matching i Case doesn't matter when matching (default)
Examples:
strsub("fooBar", "bar", "baz")
=> "foobaz"strsub("fooBar", "bar", "baz", "c")
=> "fooBar"
crypt() | explode() | lowercase() | match_begin() | match_pattern() | match_regexp() | match_template() | pad() | regexp() | strcmp() | strfmt() | strgraft() | strlen() | strsed() | strsub() | substr() | uppercase() | match_crypted() | split() | stridx()