Lets say I have an:
$url = "bla.php?test1=a&test2=b&test1=c&test2=d&test1=e&test2=f&test1=g&test2=h&test1=i&test2=j";
then I wish to run the custom function getToArray("test1") which would create an array with values ["a", "c", "e", "g", "i"]
I am trying to figure out how, but so far no luck.
Please note that in case of using getToArray("test2"), the last value from $_GET will be "j" which is end of the string...