In PHP, I'd like to crop the following sentence:
"Test 1. Test 2. Test 3."
and transform this into 2 strings:
"Test 1. Test 2." and "Test 3."
How do I achieve this?
Do I use strpos?
Many thanks for any pointers.
In PHP, I'd like to crop the following sentence:
"Test 1. Test 2. Test 3."
and transform this into 2 strings:
"Test 1. Test 2." and "Test 3."
How do I achieve this?
Do I use strpos?
Many thanks for any pointers.
Something like that?
what is the main reason why you must cut the text after "Test 2." and not before ? the best solution depends on what you want to do and what you will eventually want to do with that
to separate the two first sentence, this should do it quick :