I have an array like
$value = array('key1'=>'value1','key2'=>'value2','key3'=>'value3');
I want to convert this array to the following string.
key1=value1&key2=value2&key3=value3
I have tried with implode function, but it returns only values of the array
implode($value,"&"); // returns value1&value2&value3
Is there any simple way to achieve this ?
http_build_query($arr);