DeaDLocK
09-12-2009, 07:48 PM
Very simple one guys (I think!).
Let's say I retrieve a $POST from the URL, and the entire value string of the new variable looks like this:
abc_1:def_3:xyz_7
How do I convert this string into three different variables, namely:
abc = 1
def = 3
xyz = 7
It would be easier to have those as separate variables within the URL, I know, but in this instance, I can't - they must be part of the same URL variable, and then I need to split it up into three using PHP.
Thanks!
Let's say I retrieve a $POST from the URL, and the entire value string of the new variable looks like this:
abc_1:def_3:xyz_7
How do I convert this string into three different variables, namely:
abc = 1
def = 3
xyz = 7
It would be easier to have those as separate variables within the URL, I know, but in this instance, I can't - they must be part of the same URL variable, and then I need to split it up into three using PHP.
Thanks!