In memory I have a long multi line string. I am currently using strpos to find the position of an item in this string, but would like to convert this to the line number the item is on and the column (position) on that line. How can I do this?
I though about counting the number of line breaks there are, but I am unsure if the line breaks will be \r, \n or \r\n.
Speed is an issue.
Does anyone have any ideas?
Cheers.