略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sapi_windows_cp_conv

2024-04-30

sapi_windows_cp_conv

(PHP 7 >= 7.1.0, PHP 8)

sapi_windows_cp_convConvert string from one codepage to another

说明

sapi_windows_cp_conv(int|string $in_codepage, int|string $out_codepage, string $subject): ?string

Convert string from one codepage to another.

参数

in_codepage

The codepage of the subject string. Either the codepage name or identifier.

out_codepage

The codepage to convert the subject string to. Either the codepage name or identifier.

subject

The string to convert.

返回值

The subject string converted to out_codepage, or null on failure.

错误/异常

This function issues E_WARNING level errors, if invalid codepages are given, or if the subject is not valid for in_codepage.

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.sapi-windows-cp-conv.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3