update page now
Laravel Live Japan

mb_preferred_mime_name

(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)

mb_preferred_mime_nameMIME 文字設定を文字列で得る

説明

mb_preferred_mime_name(string $encoding): string|false

指定したエンコーディングの MIME charset 文字列を取得します。

パラメータ

encoding

調べるエンコーディング。

戻り値

文字エンコーディング encoding 用の MIME charset 文字列を返します。 指定された encoding に対して、 好ましい charset がない場合は false を返します。

例1 mb_preferred_mime_name() の例

<?php
$outputenc
= "sjis-win";
mb_http_output($outputenc);
ob_start("mb_output_handler");
header("Content-Type: text/html; charset=" . mb_preferred_mime_name($outputenc));
?>

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant