replace

function, since version 1.1.5
categories: sanitizing, strings

replace(subject, search, replacement)

replace all occurrences of the search string with the replacement string within input subject string

parameters

return type

string

example

replace('hello there', 'there', 'datakick')
replace('hello there', 'e', '')

returns

hello datakick
hllo thr

Related functions:

Update your privacy settings