I have a string and need to split it up every 6 lines in php.
So for example the text might look something like this:
Server Name
Server IP
Server Status
Sever Temp
Server IP2
-------------------
Server Name
Server IP
Server Status
Sever Temp
Server IP2
-------------------
Note: Some of the server names and even status' might also contain a '-' character
But more than one server would appear. This always one whole string and I would like to split it into an array containing just the text for each server (I can already break down the text for each individual server)
Any ideas or help would be appreciated :)