Edit report at https://bugs.php.net/bug.php?id=60485&edit=1

 ID:                 60485
 Comment by:         ppad...@php.net
 Reported by:        Hast4656 at gmail dot com
 Summary:            in_array insensitive string comparison
 Status:             Open
 Type:               Feature/Change Request
 Package:            Arrays related
 Operating System:   linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Since in_array() handles different types, I don't think it would make sense to 
add a parameter that is exclusive to handling strings.


Previous Comments:
------------------------------------------------------------------------
[2011-12-09 16:48:11] Hast4656 at gmail dot com

Description:
------------
Can you please add parameter for in_array that let this function to compare 
strings insensitive?

Test script:
---------------
// something like
in_array('a', Array('a', 'A'), true, true);


// 4th bool param says should the function compare string in a case-sensitive 
manner or not



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60485&edit=1

Reply via email to