The chr function returns the character from a Unicode value.
$ex1 = chr(52); // Decimal value
echo $ex1;
// 4
$ex2 = chr(052); // Octal value
echo $ex2;
// *
$ex3 = chr(0x52); // Hex value
echo $ex3;
// R