php - Select parts of a string till a certain character and store in an array -


I am trying to select parts of the string up to a certain character, -----, and an array of them Put in For example, in the paragraph below, I want to store in "GAME..HE", "Next .... player", "Free .... Zone" and "OR .... CAREER" in an array in php .

Gamers can also take Blitz a wild, high-pressure challenge, where players should run in front of the clock ----- The time ends before the next checkpoint. Gamers who download console versions can also play online for a limited period of 2 weeks from the release, in limited areas of the Tsunami Reef Zone ----- or up to 16 players up to 6 ----- Free

   

Explosion ("-----", $ paragraph);


Comments