Go to: Synopsis. Return value. MEL examples.


string substituteAllString(string $text, string $searchStr, string $replaceStr)

Substitute every occurrence of a single character string in a text string by a new string of any length.

Return value



Variable Name Variable Type Description
$text string - Original string to be modified.
$searchStr string - Single character string to replace.
$replaceStr string - String that will be added in.

MEL examples

    string $text = "one + two + three + four";
    string $result = substituteAllString($text, "+", "plus");
    print $result;