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 N 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 | 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 Like