Answers for "how to add space in string letters"

C#
0

Add spaces in string

string1="Rose"
string1= string1 + new string(' ', 10)
Posted by: Guest on August-25-2021
0

add space after 7 characters of string

$str = '012345678912';
echo substr($str, 0, 7) . ' ' . substr($str, 7);
Posted by: Guest on August-25-2021

Code answers related to "how to add space in string letters"

C# Answers by Framework

Browse Popular Code Answers by Language