PHP & MySQL - Split Value Help

Hi Guys,

Say i have a variable called the following which has the following value:

$customid1 = "1234----Mike";
$customid2 = "";

How do i split the value up so where it has ---- after that it adds to another variable so it now looks like this:

$customid1 = "1234";
$customid2 = "Mike";

Any help would be great.


PHP: list - Manual and [url=]PHP: explode - Manual

Thank you managed to do it after reading that :slight_smile: