« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for subst (0.001 sec.)
UConverter::transcode — ある文字エンコーディングから別の文字エンコーディングに... 12426
UConverter::transcode (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) UConverter::transcode — ある文字エンコーディングから別の文字エンコーディングに文字列を変換する 説明 public static function UConverter::transcode ( string $str , string $t ... 換したいエンコーディング。 fromEncoding str の解釈に使われる文字セット。 options オプションの配列。以下のキーが使えます: 'to_subst' - toEncoding ではエンコードできない str の文字を置き換えるのに使う文字。 これを指定する場合、 変換先のエンコーディングのう ... 表現できない文字が含まれていた場合、 それらは一文字で置換されます。 置換に使われる文字はエンコーディングに依存しますが、 'to_subst' を使って制御できます。 <?php $utf8_string = "\xE2\x82\xAC" ; // € (Euro Sign) does not exist in ISO 8859-1 // Default rep ... lacement in ISO 8859-1 is "\x1A" (Substitute) $iso8859_1_string = UConverter :: transcode ( $utf8_string , 'ISO-8859-1' , 'UTF-8' ); echo bin2hex ( $iso8859_1_str ...
https://man.mtool.work/php/8.3/uconverter.transcode.html
XMLReader クラス | PHP 8.3 8340
XMLReader クラス (PHP 5 >= 5.1.0, PHP 7, PHP 8) はじめに XMLReader 拡張モジュールは、プル型の XML パーサーです。ドキュメント ストリーム内をカーソル風に進んでいき、その途中の各ノードで立ち止まります。 クラス概要 class XMLReader { /* 定数 */ ... XML_DECLARATION ; public const int LOADDTD ; public const int DEFAULTATTRS ; public const int VALIDATE ; public const int SUBST_ENTITIES ; /* プロパティ */ public int $ attributeCount ; public string $ baseURI ; public int $ depth ; public bool $ has ... よびデフォルト属性を読み込むが、妥当性は検証しない XMLReader::VALIDATE DTD を読み込み、パース時に妥当性を検証する XMLReader::SUBST_ENTITIES エンティティを参照で置き換える 変更履歴 バージョン 説明 8.4.0 クラス定数が型付けされました。 目次 XMLReader::clos ...
https://man.mtool.work/php/8.3/class.xmlreader.html
utf8_decode — UTF-8 エンコードされた文字列を、ISO-8859-1 に変換し、表現できない... 8340
utf8_decode (PHP 4, PHP 5, PHP 7, PHP 8) utf8_decode — UTF-8 エンコードされた文字列を、ISO-8859-1 に変換し、表現できない文字を置換する 警告 この関数は PHP 8.2.0 で 非推奨 になります。この関数に頼らないことを強く推奨します。 説明 #[ \Depreca ... ( $iso8859_1_string ), "\n" ; ?> 上の例の出力は以下となります。 5a6feb 5a6feb 5a6feb 5a6feb UConverter::transcode() に 'to_subst' オプションとして '?' を指定すると、 ISO-8859-1 で表現できないか、不正な文字列の場合の utf8_decode() 関数と同じ結果を返しま ... ) does not exist in ISO 8859-1 $iso8859_1_string = UConverter :: transcode ( $utf8_string , 'ISO-8859-1' , 'UTF-8' , [ 'to_subst' => '?' ] ); var_dump ( $iso8859_1_string ); ?> 上の例の出力は以下となります。 string(1) "?" 参考 utf8_encode() - ISO-8859 ...
https://man.mtool.work/php/8.3/function.utf8-decode.html
Backward Incompatible Changes | PHP 8.3 7840
Backward Incompatible Changes PHP Core By-reference foreach after array compaction By-reference foreach loops may now visit previously skipped elements after array compaction. Internal pointers on deleted elements now move to the next survi ... tor() has been changed from string to int to match the underlying implementation. UConverter::transcode() now rejects from_subst and to_subst option values longer than 127 bytes instead of silently truncating the length before passing it to ICU . Reso ...
https://man.mtool.work/php/8.3/migration86.incompatible.html
PREV 1 NEXT