Php multiple delimiters in explode [duplicate] July 2, 2022 by Tarik Try about using: $output = preg_split('/ (@|vs) /', $input);