ravikanth
ravikanth

Reputation: 61

Extracting strings based on a particular split delimiter in php

I have a string "[email protected]+test+7".I want to extract [email protected], test and 7 into an array. How to achieve this is PHP? I have tried using preg_match but couldn't crack it.

Upvotes: 0

Views: 224

Answers (1)

Adam
Adam

Reputation: 1371

print_r(explode("+","[email protected]+test+7"));

working code :)

Upvotes: 1

Related Questions