I have an array that is built using the explode()
function, but seeing how i'm using it with random/dynamic data, i see that the indexes keep changing:
Array
(
[2] => Title: Warmly little before cousin sussex entire set Blessing it ladyship.
[3] => Snippet: Testing
[4] => Category: Member
[5] => Tags: little, before, entire
)
I need the array to be ordered starting at 0 always. I am testing with different data and sometimes it starts at 0, and with other tests it begins at different numbers. I researched and came across Array starting at zero but it seems that only applied to that users specific case. The code i'm using to build the array can be seen here: https://mcmap.net/q/153511/-finding-a-line-string-of-text-in-html-using-dom
How can i do this?