PHP Forced conversion format things don't have to be easy to forget.

Source: Internet
Author: User

mb_convert_encoding- encoding of converted characters

Descriptionstring mb_convert_encoding ( string $str , string $to_encoding [, mixed $from_encoding = mb_internal_encoding ( ) ] )

str Converts the character encoding of string type from an optional from_encoding to to_encoding .

Parameters

str

The string to encode .

to_encoding

strThe type of encoding to convert to.

from_encoding

specified by the character code name before Conversion. It can be an array or a comma-delimited list of enumerations. If not provided from_encoding , the internal (internal) encoding is Used.

See Supported Encodings.

return value

The encoded string.

PHP Casting format Things don't have to be easy to forget

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.