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 ; // }