chr
chr — Find the position of the first occurrence of a substring in a string.Description
chr( int $codepoint ): stringReturns a one-character string containing the character specified by interpreting codepoint as an unsigned integer.
This can be used to create a one-character string in a single-byte encoding such as ASCII, ISO-8859, or Windows 1252, by passing the position of a desired character in the encoding's mapping table. However, note that this function is not aware of any string encoding, and in particular cannot be passed a Unicode code point value to generate a string in a multibyte encoding like UTF-8 or UTF-16.
This function complements ord().
Parameters
codepoint
An integer between 0 and 255.
Return Values
A single-character string containing the specified byte.More information about chr on official PHP documentation site
chr - Popular snippets
- PHP 8.1 / MySQL 5.7 base64_decode preg_match_all count str_replace chr hexdec preg_match
last run:
2023-11-12 20:14:19
17
- PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
last run:
2023-11-24 18:11:00
7
- PHP 8.1 / MySQL 5.7 base64_decode preg_match_all count str_replace chr hexdec preg_match
last run:
2023-07-14 22:57:26
7
- PHP 8.1 / MySQL 5.7 strlen ctype_upper chr
last run:
2023-11-24 18:04:10
6
- PHP 8.1 / MySQL 5.7 preg_match_all count str_replace chr hexdec preg_match base64_decode
last run:
2023-07-14 22:48:59
3
- PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
last run:
2023-11-24 18:10:37
2
- PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
last run:
2023-11-24 18:02:55
2
- PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
last run:
2023-11-24 18:03:27
2
- PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
last run:
2023-11-24 17:27:40
2
- PHP 8.1 / MySQL 5.7 preg_match_all count str_replace chr hexdec preg_match base64_decode
last run:
2023-07-14 22:56:13
2
chr - New snippets
-
PHP 8.2.3 / MySQL 5.7 hash base64_decode strlen chr hexdec
added at:
2023-11-25 17:23:05
1
-
PHP 5.6 / MySQL 5.7 hash base64_decode strlen chr hexdec
added at:
2023-11-25 17:20:26
1
-
PHP 8.1 / MySQL 5.7 hash base64_decode strlen chr hexdec
added at:
2023-11-25 17:20:19
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:17:45
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:17:28
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:15:01
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:14:41
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:14:32
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:14:19
1
-
PHP 8.1 / MySQL 5.7 strlen ctype_alpha ord ctype_upper chr
added at:
2023-11-24 18:13:56
1