Open In App

PHP mb_encoding_aliases() Function

Last Updated : 29 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

The mb_encoding_aliases() is an inbuilt PHP function that can be utilized to retrieve aliases for a known encoding type.

Syntax:

mb_encoding_aliases(string $encoding): array

Parameter: This function has only one parameter:

  • encoding: This parameter specifies the encoding type that is to be checked for aliases.

Return value: The numerically indexed array for encoding aliases will be returned.

Example 1: The following code demonstrates the mb_encoding_aliases() function.

PHP




<?php
<