I am passing the variable with dot in query string.Php is replacing the dot with under score. So how can i retain the variable name which is having dot in the name
h
Use $_SERVER['QUERY_STRING']
$get = array(); foreach(explode('&', $_SERVER['QUERY_STRING']) as $part) { $part = explode('=', $part); if($key = array_shift($part)) { $get[ $key ] = implode('', $part); } } print_r($get);
Result for your example Array ( [one.txt] => on [two.txt] => on )