基于 php 中的特定拆分分隔符提取字符串


Extracting strings based on a particular split delimiter in php

我有一个字符串"test@html.com+test+7" .我想将test@html.comtest7提取到数组中。如何实现这是PHP?我试过使用preg_match但无法破解它。

print_r(explode("+","test@html.com+test+7"));

工作代码:)