Re: Variables Case Sensitivity??

From: Date: Thu, 19 Sep 2002 18:38:25 +0000
Subject: Re: Variables Case Sensitivity??
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-116920@lists.php.net to get a copy of this message
Georgie Casey wrote: > > yea, i probably didnt make that clear > its the variables NAMES that he can't gurantee to be lowercase > eg > hell pass > http://www.server.com/test.php?NAME=John&IDNumber=12 > when im expecting $name and $idnumber $lowerVars = array(); foreach( $_POST as $key => $value ) { $lowerVars[strtolower( $key )] = &$value; } Voila! HTH, Rob. -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.general (#116920) next »