php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66024 mb_chr() and mb_ord()
Submitted: 2013-11-03 04:32 UTC Modified: 2016-08-10 05:58 UTC
Votes:9
Avg. Score:4.2 ± 0.9
Reproduced:8 of 8 (100.0%)
Same Version:6 (75.0%)
Same OS:4 (50.0%)
From: yohgaki@php.net Assigned: yohgaki (profile)
Status: Closed Package: mbstring related
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yohgaki@php.net
New email:
PHP Version: OS:

 

 [2013-11-03 04:32 UTC] yohgaki@php.net
Description:
------------
Although mb_encode/decode_numericentity() can be used for multibyte version of chr()/ord(), it would be better to have mb_chr() and mb_ord().

$char_code = mb_chr($mb_char [, $encoding = mbstring.internal_encoding] )
$mb_char = mb_ord($char_code [, $encoding = mbstring.internal_encoding] )




Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-03 04:32 UTC] yohgaki@php.net
-Assigned To: +Assigned To: yohgaki
 [2016-08-10 05:58 UTC] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2016-08-10 05:58 UTC] yohgaki@php.net
Available from PHP 7.2.
 [2017-03-05 09:56 UTC] mike dot php at free dot fr
The ord_utf8 and chr_utf8 functions are available here :

http://stackoverflow.com/a/42600959/7558876
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 30 19:01:29 2025 UTC