Strreplace
From kwiki
| | This article is written by Konrad, thus using rather nonstandard English:) |
strreplace (DNM Script function)
Contents |
[edit]
full declaration
String strreplace (string str,int nFrom,int nTo,strWithWhat)
[edit]
return value
[edit]
description
Replaces characters in str, from nFrom to nTo, with given strWithWhat.
[edit]
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
