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