PHP 8.5.0 Beta 1 available for testing

Voting

: three plus five?
(Example: nine)

The Note You're Voting On

ibaid at mail dot ru
7 years ago
string mb_chr ( int $cp [, string $encoding ] )
Parameter List:
cp - character code (in decimal notation)
encoding - encoding (UTF-8, ASCII and so on)

We get the letter 'Ж' from the encoding UTF-8:

$sim = mb_chr(0x0416, 'UTF-8');
echo $sim; // Ж

Get the character '}' from the encoding ASCII:

$sim = mb_chr(125, 'ASCII');
echo $sim ; // }

<< Back to user notes page

To Top