This page last changed on Oct 14, 2011 by wikibot.

STRREPLACE()

Synopsis

Replace instances of a substring within a string with another string.

Description

Searches for all instances of the find-string in provided variable and replaces them with replace-string. If replace-string is an empty string, this will effecively delete that substring. If max-replacements is specified, this function will stop after performing replacements max-replacements times.

The replacement only occurs in the output. The original variable is not altered.The replacement only occurs in the output. The original variable is not altered.

Syntax

STRREPLACE(varname,find-string[,replace-string[,max-replacements]])
Arguments
  • varname
  • find-string
  • replace-string
  • max-replacements

See Also

Import Version

This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:25