php - Exploding by Array of Delimiters -


Is there a way to explode using an array of delimiters?

PHP manual:

array explosion (string $ delimiter, string $ string [, int $ range])

Instead of using the string $ delimiter , what is a way to use the array $ delimiter without affecting too much performance?

Experiment with a suitable regex.


Comments