G
Guest
How to change letter on some position in the string?
eg.
$word="This is my test string."
# 11111111111222# 12345678901234567890123
Change letter on 7 nth position to "X"
$word="This iX my test string."
# 11111111111222
# 12345678901234567890123
Or change letter on 15 nth position to "?"
$word="This is my tes? string."
# 11111111111222
# 12345678901234567890123
Thanks.
--
Hvala
Paul Rosenthal
------------------------------------------------
ROSENTHAL d.o.o.
Pavlinska 5
42000 Vara¾din
tel: 042/320045
mb: 098/284067
www.rosenthal.hr
eg.
$word="This is my test string."
# 11111111111222# 12345678901234567890123
Change letter on 7 nth position to "X"
$word="This iX my test string."
# 11111111111222
# 12345678901234567890123
Or change letter on 15 nth position to "?"
$word="This is my tes? string."
# 11111111111222
# 12345678901234567890123
Thanks.
--
Hvala
Paul Rosenthal
------------------------------------------------
ROSENTHAL d.o.o.
Pavlinska 5
42000 Vara¾din
tel: 042/320045
mb: 098/284067
www.rosenthal.hr