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

 ID:                 60975
 Comment by:         bobwei9 at hotmail dot com
 Reported by:        jonathan at scriptwriterthingy dot com
 Summary:            case insensitive implementation of strpbrk
 Status:             Open
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   Linux/CentOS
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Simply use this workaround:


function stripbrk ($haystack, $charlist)
{
 return strpbrk($haystack, strtolower($charlist).strtoupper($charlist));
}


Previous Comments:
------------------------------------------------------------------------
[2012-02-03 20:57:38] jonathan at scriptwriterthingy dot com

Description:
------------
strpbrk() is case sensitive. It would be great to see a case insensitive 
implementation - stripbrk()



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



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

Reply via email to