i'm trying to figure out the best way to spilt the following url string:
area-FFFFFF_miles-100_profession-web+developer
basically into the following:
$area = "FFFFFF";
$miles = 100;
$profession = "web developer";
But i've got a brain block and can't really figure out the most efficient way to do it. Any suggestions?
Thanks.
-Edit- I could do with accounting for any missing values, such as:
area-FFFFFF_miles-_profession-web+developer
missing the miles etc.