PHP mb_decode_numericentity() Function Last Updated : 12 Apr, 2023 Comments Improve Suggest changes Like Article Like Report The mb_decode_numericentity() is an inbuilt function in PHP, where the reference for the numeric string in HTML will be decoded into characters. Syntax: mb_decode_numericentity(string $string, array $map, ?string $encoding = null): stringParameters: This function has four parameters: $string: This parameter specifies the string that is to be decoded.$map: The code area that is to be transformed, is represented by the map, which is an array.$encoding: The encoding parameter denotes the character encoding. If omitted or null, then the internal character encoding value will be used.Return Values: The function return decoded string. Example 1: The following code demonstrates the mb_decode_numericentity() function. PHP <?php // Define a string with numeric entities $str = 'ABC'; // Decode the string $decoded_str = mb_decode_numericentity( $str, array(0x0, 0x10000, 0, 0xfffff), 'UTF-8'); // Display the decoded string echo $decoded_str; ?> Output: ABC Example 2: The following code demonstrates the mb_decode_numericentity() function. PHP <?php // Define a string with numeric entities $str = 'Hello World'; // Decode the string $decoded_str = mb_decode_numericentity( $str, array(0x0, 0x10000, 0, 0xfffff), 'UTF-8'); // Display the decoded string echo $decoded_str; ?> Output: Hello World Reference: https://www.php.net/manual/en/function.mb-decode-numericentity.php#refsect1-function.mb-decode-numericentity-description Comment More infoAdvertise with us Next Article PHP mb_decode_numericentity() Function neeraj3304 Follow Improve Article Tags : PHP PHP-function PHP-Multibyte-String Similar Reads PHP mb_encode_numericentity() Function The mb_encode_numercentity() function is an inbuilt function in PHP that is used to encode HTML entities with numerical values encoded using either decimal or hexadecimal representation. Syntax: string mb_encode_numericentity( string $string, array $map, string $encoding, bool $hex )Parameters: This 2 min read PHP mb_encode_numericentity() Function The mb_encode_numericentity() function is an inbuilt function in PHP that is used to convert characters in a given string to their corresponding HTML numeric entity representations. Syntaxmb_encode_numericentity( string $string, array $map, ?string $encoding = null, bool $hex = false ): stringParame 2 min read PHP mb_decode_mimeheader() Function The mb_decode_mimeheader() function is an inbuilt function in PHP where the string is decoded into the MIME header field. Syntax: mb_decode_mimeheader(string $string): string Parameter: This function has a single parameter: string: This parameter specifies the string that is to be decoded. Return Va 1 min read PHP | is_numeric() Function The is_numeric() function is an inbuilt function in PHP which is used to check whether a variable passed in function as a parameter is a number or a numeric string or not. The function returns a boolean value. Syntax: bool is_numeric ( $var ) Parameters: The function accepts a single parameter which 2 min read PHP | json_decode() Function The json_decode() function is an inbuilt function in PHP which is used to decode a JSON string. It converts a JSON encoded string into a PHP variable. Syntax: json_decode( $json, $assoc = FALSE, $depth = 512, $options = 0 ) Parameters: This function accepts four parameters as mentioned above and des 2 min read PHP htmlspecialchars_decode() Function The htmlspecialchars_decode() function is an inbuilt function in PHP that converts special entities back to characters. Syntax: Sttring htmlspecialchars_decode( string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ) Parameters: This function accept two parameters that are discussed 1 min read PHP gmp_init() Function The gmp_init() function is an inbuilt function in PHP that is used to create a GMP number from different data types, including strings, integers, or other GMP objects. It's commonly used when you want to start performing arithmetic operations on large numbers without losing precision. Syntax: gmp_in 2 min read PHP | IntlChar getNumericValue() Function The IntlChar::getNumericValue() function is an inbuilt function in PHP which is used to get the numeric value for a Unicode code point as defined in the Unicode Character Database. Syntax: float IntlChar::getNumericValue( $codepoint ) Parameters: This function accepts a single parameter $codepoint w 2 min read PHP | utf8_decode() Function The utf8_decode() function is an inbuilt function in PHP which is used to decode a UTF-8 string to the ISO-8859-1. This function decodes back to the encoded string which is encoded with the utf8_encode() function. Syntax:Â string utf8_decode( string $string ) Parameter: This function accepts single 2 min read PHP decoct( ) Function In the earlier days of computing, octal numbers and the octal numbering system was very popular for counting inputs and outputs because as it works in counts of eight, inputs and outputs were in counts of eight, a byte at a time. Due to a wide usage of octal number system many times it happens that 2 min read Like