![]() |
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( Parameters: This function accepts four parameters that are described below.
Return Values: The mb_encode_numericentity() function returns the encoded string, or “false” if an error occurs. Examples of PHP mb_encode_numericentity() FunctionExample 1: The following program demonstrates the mb_decode_numercentity() function. PHP
Output
I ♥ PHP! Example 2: The following program demonstrates the mb_decode_numercentity() function. PHP
Output
Hello, <b>World</b> Example 3: The following program demonstrates the mb_decode_numercentity() function. PHP
Output <p>This is a <strong>test</strong> article with some entities.</p>
Reference: https://www.php.net/manual/en/function.mb-encode-numericentity.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |