I want to get some data between some 2 indexes.
For example, I have string: “just testing…” and I need string from 2 till 6. I should get:
‘st tes’.
What function can do this for me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
substr:Note that the second parameter is the length of the substring, not an index (your question is a bit unclear, since the substring from 2 to 6 is actually ‘st t’, not ‘st tes’).