php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74047 No way to compare multibyte UTF-8 strings??
Submitted: 2017-02-05 17:50 UTC Modified: 2017-02-05 20:08 UTC
From: teo8976 at gmail dot com Assigned:
Status: Not a bug Package: *Unicode Issues
PHP Version: 5.6.30 OS:
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 !
Your email address:
MUST BE VALID
Solve the problem:
49 - 41 = ?
Subscribe to this entry?

 
 [2017-02-05 17:50 UTC] teo8976 at gmail dot com
Description:
------------
Just like there is a strcmp() function for comparing strings byte-by-byte, there should exist a mb_strcmp() function to compare multibyte strings according to a given encoding, e.g. 'UTF-8'. Actually, it should be according to an encoding and collation.

And please don't call it a feature request. It's simply RIDICULOUS that, at the very least, UTF-8 string comparison is not available in 20fucking17.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-02-05 17:52 UTC] teo8976 at gmail dot com
-Summary: No way to compare multibyte UTF-8 strings?? +Summary: ___ -Status: Open +Status: Closed
 [2017-02-05 17:52 UTC] teo8976 at gmail dot com
seems intl does it.
 [2017-02-05 20:08 UTC] requinix@php.net
-Summary: ___ +Summary: No way to compare multibyte UTF-8 strings?? -Status: Closed +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC