Re: case-insensitive in_array()

From: Date: Thu, 23 Nov 2000 06:17:52 +0000
Subject: Re: case-insensitive in_array()
Groups: php.general 
Request: Send a blank email to php-general+get-26794@lists.php.net to get a copy of this message
>Right, I'll be taking a moment to get drunk now. I appoligize, you didn't >ask to find a key, in_array() searches an array's values. :P You could >remove the array_keys step and switch around the foreach, but it wouldn't >recurse. But, as I look at in_array, I'm not sure that recurses either. >So I guess it's fine. I didn't even realise your code was searching for keys. I just wrote my own function. I also didn't need it to be recursive either, but maybe the php programmers could think about the possibility of modifiying/copying the function to support that. Thanks Gerald

« previous php.general (#26794) next »