keyboard
07-26-2012, 03:03 AM
Hello everyone,
I'm trying to split one string into several, but not sure how...
Lets say I have a string variable
$var = 'test@gmail.com~|~test@hotmail.com~|~test@grapevine.com';
How would I split that into three different strings... eg.
$var1 = 'test@gmail.com';
$var2 = 'test@hotmail.com';
$var3 = 'test@grapevine.com';
~|~ is the divider I want to use....
Any help?
I'm trying to split one string into several, but not sure how...
Lets say I have a string variable
$var = 'test@gmail.com~|~test@hotmail.com~|~test@grapevine.com';
How would I split that into three different strings... eg.
$var1 = 'test@gmail.com';
$var2 = 'test@hotmail.com';
$var3 = 'test@grapevine.com';
~|~ is the divider I want to use....
Any help?