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 5.6 / PostgreSQL 10 Bookings (ReadOnly) chr rand
last run:
2024-07-06 13:51:45
10
- 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 str_split chr ord count hex2bin
last run:
2024-08-19 09:11:16
2
- PHP 8.1 / MySQL 5.7 strlen ord chr
last run:
2024-03-27 11:44:14
2
- PHP 8.1 / MySQL 5.7 strlen ord chr
last run:
2024-03-27 11:44:08
2
- PHP 8.1 / MySQL 5.7 strlen ord chr
last run:
2024-03-27 11:42:29
2
chr - New snippets
-
PHP 8.1 / MySQL 5.7 str_split strpos str_pad decbin strlen chr bindec substr
added at:
2024-08-19 08:58:00
1
-
PHP 8.1 / MySQL 5.7 str_split strpos str_pad decbin strlen chr bindec substr
added at:
2024-08-19 08:57:45
1
-
PHP 8.1 / MySQL 5.7 str_split strpos str_pad decbin strlen chr bindec substr
added at:
2024-08-19 08:56:59
1
-
PHP 8.1 / MySQL 5.7 str_split chr ord count hex2bin
added at:
2024-08-19 08:50:29
2
-
PHP 8.1 / MySQL 5.7 str_split chr ord count hex2bin
added at:
2024-08-19 08:50:00
1
-
PHP 8.1 / MySQL 5.7 str_split chr ord count hex2bin
added at:
2024-08-19 08:48:58
1
-
PHP 8.1 / MySQL 5.7 str_split chr ord count hex2bin
added at:
2024-08-19 08:47:46
1
-
PHP 8.1 / MySQL 5.7 str_split chr ord count hex2bin
added at:
2024-08-19 08:44:48
1
-
PHP 8.1 / MySQL 5.7 str_split chr ord count str_replace base64_decode
added at:
2024-08-19 08:41:40
1
-
PHP 8.1 / MySQL 5.7 str_split strpos str_pad decbin ltrim strlen chr bindec substr strtoupper
added at:
2024-08-19 08:34:19
1