PHP chr() function returns a one-character string containing the character specified by ASCII. Alias of rtrim().
Syntax
string chr(ascii);
Parameter | Description |
---|---|
ascii : | Required parameter. The extended ASCII code. |
Return Value : | Returns the specified character. |
<?php // Decimal value echo chr(12) . "<br>"; // Octal value echo chr(032) . "<br>"; // Hex value echo chr(0x12) . "<br>"; ?>