PHP mb_chr() Function Last Updated : 02 Sep, 2022 Summarize Comments Improve Suggest changes Share 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 Comment More infoAdvertise with us Next Article PHP | chroot( ) Function V vkash8574 Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Multibyte-String Similar Reads PHP chdir() Function PHP chdir() function is used to change the current directory to new directory path. It takes only a single argument as new directory path. Syntaxbool chdir(string $new_directory_path)ParametersThis function accepts one parameter, which is mandatory. Return ValueIt returns a boolean operator as retur 2 min read PHP | chroot( ) Function The chroot() function in PHP is an inbuilt function which is used to change the root directory of the current process to directory. The chroot() function changes the current working directory to "/". The chroot() function is only available to GNU and BSD systems, and only when the user is using the 2 min read PHP | dir() Function The dir() function in PHP is an inbuilt function which is used to return an instance of the Directory class. The dir() function is used to read a directory, which includes the following: The given directory is opened. The two properties handle and path of dir() are available. Both handle and path pr 2 min read PHP | is_dir( ) Function The is_dir() function in PHP used to check whether the specified file is a directory or not. The name of the file is sent as a parameter to the is_dir() function and it returns True if the file is a directory else it returns False. Syntax: is_dir($file) Parameters Used: The is_dir() function in PHP 1 min read PHP mb_ord() Function The m_ord() is an inbuilt function in PHP that returns the Unicode code point for the specific character. Syntax: mb_ord(string $string, ?string $encoding = null): int|falseParameters: This function has two parameters: string: This is the string input. It must be a valid string.encoding: The encodin 1 min read PHP | ftp_chdir() function The ftp_chdir() function is an inbuilt function in PHP which is used to change the current directory on the FTP server. Syntax: ftp_chdir( $ftp_connection, $directory ) Parameter: This function accepts two parameters as mentioned above and described below:  $ftp_connection: It is required paramete 2 min read Like