I have an associative array called $new_get which comes from the original array of $_GET. The difference is that I modified somes of the keys and values that I will after need to echo to make a new URL.
I simply want to convert back this $new_get to it’s original form, like :
?something=this&page=2
My $new_get looks like :
$new_get = array (
'something' => 'this',
'page' => '2'
);
simply do that :
if your $new_get is built the same way than $_GET.
Here is a function of my own to make a new URL Query based on the actual one :