Doc #75339 [Opn->Ver]: IntlChar::chr - typo in the output example
| From: | cmb@php.net | Date: | Mon, 09 Oct 2017 13:36:28 +0000 |
| Subject: | Doc #75339 [Opn->Ver]: IntlChar::chr - typo in the output example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15062@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75339&edit=1
ID: 75339
Updated by: cmb@php.net
Reported by: fabien dot villepinte at gmail dot com
Summary: IntlChar::chr - typo in the output example
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: intl
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2017-10-08 15:55:10] fabien dot villepinte at gmail dot com
Description:
------------
http://php.net/manual/en/intlchar.chr.php
There is a typo in the output example.
The 2nd line should be 'string(1) "?"' instead of 'string(1)
"A"'.
https://3v4l.org/ggakS
Test script:
---------------
<?php
$values = ["A", 63, 123, 9731];
foreach ($values as $value) {
var_dump(IntlChar::chr($value));
}
Expected result:
----------------
string(1) "A"
string(1) "?"
string(1) "{"
string(3) "â"
Actual result:
--------------
string(1) "A"
string(1) "A"
string(1) "{"
string(3) "â"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75339&edit=1