PHP chr() Function
PHP chr() Function
The chr() function in PHP generates a single byte string from a number and returns a one-character string containing the character as specified by the unsigned integer.
Syntax
chr(bytevalue);
Parameter
bytevalue(required)- This parameter specifies an ASCII value.
Return
This function returns a single-character string containing the specified byte.
Example 1
Output
The character for ASCII 52:* The character for ASCII 52:" The character for ASCII 52:B
Example 2
Output
2 + 2 * 2 = 6
Example 3
Output
$ is an international currency!
Example 4
Output
My name is " Reema "