現在の位置: ホーム> 関数カテゴリ一覧> get_html_translation_table

get_html_translation_table

htmlspecialchars()およびhtmlentities()を使用した後、変換テーブルを返します
名前:get_html_translation_table
カテゴリ:
対応言語:php
一言説明:htmlspecialchars()およびhtmlentities()で使用される翻訳テーブルを返します。

例1

htmlspecialchars関数で使用される翻訳テーブルを出力します。

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span> <span class="token comment">// html_specialcharsはデフォルトです</span>
<span class="token delimiter important">?></span></span>

自分で試してみてください

例2

html_specialchars翻訳テーブル:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token constant">html_specialchars</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

キャラクターとエンティティの名前を表示します。

配列
(
  ["] =>"
  [&] =>&
  [<] => <
  [>] =>>
))

例3

html_entities翻訳表:

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">get_html_translation_table</span> <span class="token punctuation">(</span> <span class="token constant">html_entities</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

キャラクターとエンティティの名前を表示します。

配列
(
  ["] =>"
  [&] =>&
  [<] => <
  [>] =>>
  [] =>
    [?] =>?
  [?] => ¢
  [?] => £
  [?] =>¤
  [?] => ¥
  [?] => |
  [?] =>§
  [?] =>¨
  [?] =>?
  [?] => a
  [?] =>?
  [?] =>?
  [?] =>  - 
  [?] =>?
  [?] =>ˉ
  [?] =>°
  [?] =>±
  [?] => 2
  [?] => 3
  [?] => &#39;
  [?] =>μ
  [?] =>?
  [?] =>・
  [?] =>?
  [?] => 1
  [?] => o
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>à
  [?] =>á
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>è
  [?] =>é
  [?] =>ê
  [?] =>?
  [?] =>ì
  [?] =>í
  [?] =>?
  [?] =>?
  [?] => d
  [?] =>?
  [?] =>ò
  [?] =>ó
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>×
  [?] =>?
  [?] =>ù
  [?] =>ú
  [?] =>?
  [?] =>ü
  [?] => y
  [?] => t
  [?] =>?
  [?] =>à
  [?] =>á
  [?] => a
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>è
  [?] =>é
  [?] =>ê
  [?] =>?
  [?] =>ì
  [?] =>í
  [?] =>?
  [?] =>?
  [?] => e
  [?] =>?
  [?] =>ò
  [?] =>ó
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>÷
  [?] =>?
  [?] =>ù
  [?] =>ú
  [?] =>?
  [?] =>ü
  [?] => y
  [?] => t
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?

  [?] =>?
  [?] =>?
  [?] =>?
  [α] =>α
  [β] =>β
  [γ] =>γ
  [δ] =>δ
  [ε] =>ε
  [ζ] =>ζ
  [η] =>η
  [θ] =>θ
  [ι] =>ι
  [κ] =>κ
  [λ] =>λ
  [μ] =>μ
  [ν] =>ν
  [ξ] =>ξ
  [ο] =>ο
  [π] =>π
  [ρ] =>ρ
  [σ] =>σ
  [τ] =>τ
  [υ] =>υ
  [φ] =>φ
  [χ] =>χ
  [ψ] =>ψ
  [ω] =>ω
  [α] =>α
  [β] =>β
  [γ] =>γ
  [δ] =>δ
  [ε] =>ε
  [ζ] =>ζ
  [η] =>η
  [θ] =>θ
  [ι] =>ι
  [κ] =>κ
  [λ] =>λ
  [μ] =>μ
  [ν] =>ν
  [ξ] =>ξ
  [ο] =>ο
  [π] =>π
  [ρ] =>ρ
  [?] =>?
  [σ] =>σ
  [τ] =>τ
  [υ] =>υ
  [φ] =>φ
  [χ] =>χ
  [ψ] =>ψ
  [ω] =>ω
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>  - 
  [?] =>  - 
  [?] => &#39;
  [?] => &#39;
  [?] =>?
  [?] =>“
  [?] =>」
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>…
  [?] =>‰
  [′] =>&#39;
  [″] => &#39;&#39;
  [?] =>?
  [?] =>?
  [ ̄] =>  ̄
  [?] =>?
  [?] =>€
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [←] =>←
  [↑] =>↑
  [→] =>→
  [↓] =>↓
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [∈] =>∈
  [?] =>?
  [?] =>?
  [∏] => ∏
  [∑] => ∑
  [?] =>?
  [?] =>?
  [√] =>√
  [∝] => ∝
  [∞] =>∞
  [¶] =>¶
  [∧] =>∧
  [∨] =>∨
  [∩] =>∩
  [∪] =>∪
  [∫] =>∫
  [∴] =>∴
  [〜] =>〜
  [?] =>?
  [≈] =>≈
  [≠] =>≠
  [≡] =>¹
  [≤] =>≤
  [≥] =>≥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [⊕] =>⊕
  [?] =>?
  [⊥] =>⊥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
))
類似の関数
  • マスクと一致しない開始サブストリングの長さを取得します strcspn

    strcspn

    マスクと一致しない開始サブストリングの長
  • ターゲット文字列の指定された文字列の最後の発生を計算します strrpos

    strrpos

    ターゲット文字列の指定された文字列の最後
  • ナチュラルオーダーアルゴリズムを使用して文字列を比較する(ケースの非感受性) strnatcasecmp

    strnatcasecmp

    ナチュラルオーダーアルゴリズムを使用して
  • 文字列の一部を返します substr

    substr

    文字列の一部を返します
  • 指定された文字セットに文字列内のすべての文字が存在する最初のサブストリングの長さを計算します strspn

    strspn

    指定された文字セットに文字列内のすべての
  • ロケール情報の設定 setlocale

    setlocale

    ロケール情報の設定
  • 1次元配列の値を文字列に変換します implode

    implode

    1次元配列の値を文字列に変換します
  • バイナリデータを16進表現に変換します bin2hex

    bin2hex

    バイナリデータを16進表現に変換します