Codepoint¶
A code point is a numerical value that represents a specific character in an encoding system, such as Unicode. Each character, symbol, or control command in a character set is assigned a unique code point, allowing it to be stored and transmitted in digital systems.
In Unicode, code points are written as U+ followed by a hexadecimal number. For example, the character A has the code point U+0041.
<?php
// The ElePHPant code point
echo $unicodeChar = "\u{1F418}"; //🐘
?>
See also Code point, Unicode 14.0 and All the unicode codepoints.
Related : Unicode, Escape Sequences