Return characters from different ASCII values:
The chr() function returns a character from the specified ASCII value.
The ASCII value can be specified in decimal, octal, or hex values. Octal values are defined by a leading 0, while hex values are defined by a leading 0x.
| Parameter | Description |
|---|---|
| ascii | Required. An ASCII value |
| Return Value: | Returns the specified character |
|---|---|
| PHP Version: | 4+ |
Using the octal value 046 to add the ASCII Character: &.
Using the decimal values 43 and 61 to add the ASCII Characters: + and =.
Complete PHP String Reference
Your message has been sent to W3Schools.