dea0fc522840cb5a1b55f8c2e56d110c1cc5e7b7
noccylabs/unicode
This library adds support for writing unicode characters to the console. It will register a number of global functions for this purpose:
uchr($numeric)- Returns the unicode character matching the numeric argument.uprintf($fmt, $arg..)- A wrapper forprintfthat enables\uto embed unicode strings.usprintf($fmt, $arg..)- A wrapper likeuprintfbut forsprintf.
Examples
To output a specific UTF-8 glyph:
echo uchr(0x1000)
The same thing in a printf fashion:
uprintf("Unicode glyph x1000: \u1000");
Description
Languages
PHP
100%