chr

PHP 4, PHP 5, PHP 7, PHP 8
chr - Generate a single-byte string from a number
Chr Online Tool
Manual
Code Examples

Example #1 chr example

PHP Version:

Example #2 Overflow behavior

Result: aA
PHP Version:

Example #3 Building a UTF-8 string from individual bytes

Result: 🐘
PHP Version:


Example #4 of chr

PHP Version:


Function chr:

Strings Functions

Most used PHP functions