$value){ if (substr($key,0,5)=="HTTP_") { $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); $out[$key]=$value; } } return $out; } } function safeUrlString( $str ){ $str = urldecode($str); return str_replace( array( '.' , '/' ) , array() , $str ); }