as I am new to php, and after googling 🙂 I still could not find what I wanted to do.
I have been able to find start and end position in string that i want to extract but most of the example use strings or characters or integers to get string between but I could not find string bewteen two positions.
For example:
$string = “This is a test trying to extract”;
$pos1 = 9; $pos2 = 14;
Then I get lost. I need to get the text between position 9 and 14 of of the string.
Thanks.
1 Answer