![]() |
The mb_http_output() function is an inbuilt function in PHP that is used to set and retrieve the character encoding. This function allows you to specify a character encoding for HTTP response. Syntax: mb_http_output($encoding )
Parameters: This function accepts only one parameter which is described below.
Return Value: This function returns the boolean value if the function successfully executes, it will return “true” otherwise it will return false. If the $encoding removes the function, it will be used by default encoding. Program 1: The following program demonstrates the mb_http_output() function. PHP
Output
Current HTTP output encoding: UTF-8 Program 2: The following program demonstrates the mb_http_output() function. PHP
Output: Character encoding set to UTF-8 for HTTP output.
Reference: https://www.php.net/manual/en/function.mb-http-output.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |