I'm using PHP, and I get a string from a db with a struct similar to this: $string = "a:b;c:d;e:f;g:h;" and so on, where a, b, c.. are variables, a,c and e couldn't be a continuous number, they can be numbers from 1 to 500. I need to convert this string into an array with this format:
$array [a] == ("b");
$array [c] == ("d");
$array [e] == ("f");
etc...
But I don't know how to get two substring from string (double dot separated, and dot comma separated) and put it into a 2 D string.
Thanks you in advance