0

How do I change a character for multiple characters?

Example : I have 3 coins = I have three coins. Change the character '3' to the characters "three"

9th Apr 2020, 12:35 AM
jhon sebastian zuñiga lopez
jhon sebastian zuñiga lopez - avatar
3 RĂ©ponses
+ 1
It is so simple just split the string just one char before the number and then join the number in string and then the remaining part. Ex : I have : 3 : conis Convert 3-> three Then join the 1st part, three and the 3rd part => I have three coins
9th Apr 2020, 1:11 AM
Abhay
Abhay - avatar
+ 1
And make Your Own logic becoz they makes u more confident.. 😉
9th Apr 2020, 1:12 AM
Abhay
Abhay - avatar
0
Thanks, your help was very helpful
9th Apr 2020, 1:30 AM
jhon sebastian zuñiga lopez
jhon sebastian zuñiga lopez - avatar