strReplaceIgnoreCase

Replaces an existing substring with another substring, performing the search without using case sensitivity.

If there are multiple occurrences of the substring to be replaced, they will all be replaced by the new substring.

Type and Usage

Parameters

Takes three parameters:

  • The first parameter is the string on which the substitution will be performed.

  • The second parameter is the substring to be replaced.

  • The third parameter is the substring that will replace the existing substring.

Output

Returns a string.

Example

<$hello = "Hello world! I love the world!"$>
<$strReplaceIgnoreCase(hello, "WORLD", "universe")$>