Strreplace

From kwiki

Jump to: navigation, search
This article is written by Konrad, thus using rather nonstandard English:)

strreplace (DNM Script function)

Contents

full declaration

String strreplace (string str,int nFrom,int nTo,strWithWhat)

return value

String

description

Replaces characters in str, from nFrom to nTo, with given strWithWhat.

Example

var $s="a cat";
var $sResult=strreplace($s,2,4,"dog");//replace 3 characters, at positions 2,3,4 with "dog"
MessageBox($sResult);//"a dog"


keywords: replace in string
Personal tools
konradp.com