I have some PHP code (written by someone else) that’s parsing a html file and getting the 7th item in an array from that file.
That item is supposed to be the last item in the array.
The problem is that that item sometimes has a comma within the string, and in that case, the code only gets the first part of the string, since it thinks the end of the item is a new item in the array.
Here’s the code I’m currently using:
$read = fread($open,200);
$text = explode(",",$read);
$msg = $text[6];
$text = ($msg);
Is there any way to have it get the 7th item until the end of the array, instead of just the 7th item, and return it as one item?
Thanks!!
Note that it’s actually getting the 7th element (0-5 = 6 elements, [6] = 7th element)