17
Answers

split a string

Ankit  Shukla

Ankit Shukla

8y
918
1
Hello;
 
     Suppose I have a string like: 
 
"Ministry Of Labour and Employment"
 
 I need to split string after 20 characters, then sub strings are "Ministry Of Labour a" and "nd Employment" . How can I convert it in "Ministry Of Labour" and "and Employment"
 
 Thanks in advance.

Answers (17)
Next Recommended Forum