AS3 version here
Please see right hand panel before copying>
//needle and/or replacement can be either a string or an array of strings:
_global.str_replace=function(needle, replacement, haystack:String) {
var r=haystack;
if(typeof(needle)=="string"){
needle=Array(needle)
}
if(typeof(replacement)=="string"){
replacement=Array(replacement)
}
while(replacement.length<needle.length){
replacement.push(replacement[replacement.length-1])
}
for(var i in needle){
r=r.split(needle[i]).join(replacement[i])
}
return(r)
}
/*SAMPLE USAGE:
trace( strreplace("A","X","ABCDEFG") ) //outputs: XBCDEF
trace( strreplace(Array("A","B","C"),Array("X","Y","Z"),"ABCDEFG") ) //outputs: XYZDEF
*/
4 comments:
kd 9 shoes
fitflops
ralph lauren pas cher
ugg boots
longchamp outlet
red bottoms
louboutin uk
rolex watches uk
adidas yeezy
coach factory outlet
20161228caiyan
This article is interesting and useful. Thank you for sharing. And let me share an article about health that God willing will be very useful. Thank you :)
Pengobatan Sakit Pinggang secara Cepat & Efektif
Penyebab Sering Nyeri Ulu Hati
Solusi untuk Menanggulangi Osteoporosis
Obat Penyakit Crohn
Vitamin Penguat Tulang dan sendi
Cara Mengobati Abses Payudara Tanpa Operasi
Thank you
Your article is very inspirational, hopefully it will be useful for many people
Cara Mengatasi Nyeri Tulang & Sendi
6 Cara Mencegah Dan Mengatasi Pengeroposan Tulang
Cara Menyembuhkan Patah Tulang
Cara Mengempiskan Kaki Bengkak
Obat Kurap
If love is no longer for me and if he is happy for you, I will leave even though my heart will not be willing
Cara Mengobati Usus Buntu
Cara Mengobati Sinusitis
Cara Mengobati Gusi Bengkak
Cara Menghilangkan Benjolan Di Ketiak
Pengobatan Herbal Alami
Solusi Sehat Dengan Herbal
Post a Comment