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

Parameter

bytevalue(required)- This parameter specifies an ASCII value.

Return

This function returns a single-character string containing the specified byte.

Example 1

Output

Example 2

Output

Example 3

Output

Example 4

Output