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
 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC