We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17d395 commit 1db8752Copy full SHA for 1db8752
2 files changed
phputf8/utils/bad.php
@@ -254,7 +254,7 @@ function utf8_bad_identify($str, &$i)
254
$len = strlen($str);
255
256
for ($i = 0; $i < $len; $i++) {
257
- $in = ord($str{$i});
+ $in = ord($str[$i]);
258
259
if ($mState == 0) {
260
// When mState is zero we expect either a US-ASCII character or a
phputf8/utils/unicode.php
@@ -39,7 +39,7 @@ function utf8_to_unicode($str)
39
40
41
42
43
44
45
0 commit comments