PHP 8.4.24 Released!

Voting

: min(nine, one)?
(Example: nine)

The Note You're Voting On

voromax
17 years ago
Another quick and short function to get unicode char by its code.

<?php
/**
 * Return unicode char by its code
 *
 * @param int $u
 * @return char
 */
function unichr($u) {
    return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES');
}
?>

<< Back to user notes page

To Top