Whenever a user clicks on different questions and alerts, an array is generated with content like this:
Team A, Player 1, Yellow, C1
This type of array is generated for each event during a football match. Once the match is over, I need to store these events in my database. Is there a way to separate each part of this array using a semicolon (;) so that when it's exploded, it looks similar to this:
Team A, Player 1, Yellow, C1; Team B, Player 5, Red, S6
I am able to create the initial array but need help figuring out how to incorporate the semicolon. Could this possibly involve creating an array within an array?
Thank you in advance for your assistance.