Maisonnette » The Meh!


PHP - Get url variables case insensitive

Posted in Scripts by The Meh! on the December 23rd, 2008

$str = $_SERVER[’QUERY_STRING’];

parse_str($str, $output);

foreach($output as $key => $value) {
$QUERY[strtolower($key)] = $value;
}

print_r($QUERY);

Example: url:
http://www.site.com/index.php?ID=C22&Var2=DA&vAr3=DA&LINK=Test

Array
(
[id] => C22
[var2] => DA
[var3] => DA
[link] => Test
)

Teen Dating Quiz
All The Single Lady Lyric
Meet Fuck Therapy Game
Dating Personal Free With Photo
Meet The Robinsons Walk Through
Meet Fuck Game
Russian Bride For Sale
Dating Internet Online Personal
The Sims 2 Single Mom
Mother Of The Bride Formal Wear

Comments are closed.