Is there any way to explode() using an array of delimiters?
PHP Manual: array explode ( string $delimiter , string $string [, int $limit ] ) <
PHP Manual:
array explode ( string $delimiter , string $string [, int $limit ] )
$str = 'Monsters are SUPER scary, bro!'; $del = array('a', 'b', 'c'); // In one fell swoop... $arr = explode( $del[0], str_replace($del, $del[0], $str) );