PHP mb_chr() Function Last Updated : 02 Sep, 2022 Comments Improve Suggest changes Like Article Like Report The mb_chr() function is an inbuilt function in PHP that is used to return the character unicode point value that is encoded into the specified encoding. Syntax: string|false mb_chr(int $codepoint, string $encoding = null) Parameters: This function accepts two parameters that are described below: $codepoint: This parameter holds the unicode code point value.$encoding: This parameter describes the character encoding. If this parameter value is omitted or null, the internal character encoding value will be used. Return Value: This parameter returns a string that contains the requested character. It returns the specified encoding or false on failure. Example 1: The following code demonstrates the PHP mb_chr() method. PHP <?php // Create an array with the character // unicode values $char_code = [71, 101, 101, 107, 115]; // Return the character for each // unicode array values foreach ($char_code as $index) { print_r(mb_chr($index, 'ASCII')); } ?> OutputGeeks Example 2: The following code is another example of the PHP mb_chr() method. PHP <?php // Create an array with character // unicode values $char_code = [0x71, 0x101, 0x104, 0x107, 0x115]; // Return the character for each // unicode array values foreach ($char_code as $index) { print_r(mb_chr($index, 'UTF-8')); } ?> OutputqāĄćĕ Reference: https://www.php.net/manual/en/function.mb-chr.php Create Quiz Comment V vkash8574 Follow 0 Improve V vkash8574 Follow 0 Improve Article Tags : Web Technologies PHP PHP-function PHP-Multibyte-String Explore BasicsPHP Syntax4 min readPHP Variables5 min readPHP | Functions6 min readPHP Loops4 min readArrayPHP Arrays5 min readPHP Associative Arrays4 min readMultidimensional arrays in PHP5 min readSorting Arrays in PHP4 min readOOPs & InterfacesPHP Classes2 min readPHP | Constructors and Destructors5 min readPHP Access Modifiers4 min readMultiple Inheritance in PHP4 min readMySQL DatabasePHP | MySQL Database Introduction4 min readPHP Database connection2 min readPHP | MySQL ( Creating Database )3 min readPHP | MySQL ( Creating Table )3 min readPHP AdvancePHP Superglobals6 min readPHP | Regular Expressions12 min readPHP Form Handling4 min readPHP File Handling4 min readPHP | Uploading File3 min readPHP Cookies9 min readPHP | Sessions7 min read Like