|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60975 case insensitive implementation of strpbrk
Submitted: 2012-02-03 20:57 UTC Modified: -
From: jonathan at scriptwriterthingy dot com Assigned:
Status: Open Package: *General Issues
PHP Version: Irrelevant OS: Linux/CentOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
9 + 20 = ?
Subscribe to this entry?

 [2012-02-03 20:57 UTC] jonathan at scriptwriterthingy dot com
strpbrk() is case sensitive. It would be great to see a case insensitive 
implementation - stripbrk()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-04 10:41 UTC] bobwei9 at hotmail dot com
Simply use this workaround:

function stripbrk ($haystack, $charlist)
 return strpbrk($haystack, strtolower($charlist).strtoupper($charlist));
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 10:01:23 2020 UTC