Functions:replace

From Dwoo Docs

Jump to: navigation, search

Replaces the search string by the replace string

replace(string $value, mixed $search, mixed $replace)
  • value : the string to search into
  • search : the string to search for or an array of strings
  • replace : the string to use as a replacement or an array of strings (matching the search array)




Example:

{replace "abc" "b" "B"} or {"abc"|replace:array(a,c):array(A,C)}

Output:

aBc or AbC
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.