Exploding by Array of Delimiters

explode, php

Solution

Use `preg_split()` with an appropriate regex.

Problem

Is there any way to explode() using an array of delimiters? PHP Manual: array explode ( string $delimiter , string $string [, int $limit ] ) Instead of using `string $delimiter` is there any way to use `array $delimiter` without affecting performance too much?

Original source