On Fri, Apr 13, 2012 at 12:22 PM, David OBrien <dgobr...@gmail.com> wrote:
> On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists
> <tamouse.li...@gmail.com> wrote:
>>
>> Anyone have a quick-and-dirty way to check $_REQUEST keys that is
>> case-insensitive?
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> this what you asking?
>
> foreach ( $_REQUEST as $key => $value ) {
>       if ( strtolower($key) in array('name','username','password')) $data[
> strtolower($key) ] = $value;
> }

That would do it! Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to