Piorun Posted May 6, 2013 Posted May 6, 2013 Hi guys Today i have a problem with words in string. So for ex i have string: Hi my name is paul im 20 and i want print only 3 words and after last add "..." like that: Hi my name... How?
iPrestege Posted May 6, 2013 Posted May 6, 2013 Do you mean you want to get a word in the sentence if it were in the middle or at the end?
Piorun Posted May 6, 2013 Author Posted May 6, 2013 I solve this with "split" function . You can lock this topic.
ixjf Posted May 6, 2013 Posted May 6, 2013 I would use the string library functions for that work, even though split works in this case.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now