Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个字符串"test@html.com+test+7"。我想提取test@html.com,test并7放入一个数组中。这是PHP如何实现的?我已经尝试使用preg_match但无法破解它。
"test@html.com+test+7"
test@html.com
test
7
preg_match
print_r(explode("+","test@html.com+test+7"));
工作代码:)