當前位置: 首頁> 函數類別大全> 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>

顯示字符和實體名:

 Array
(
  ["] => "
  [&] => &
  [<] => <
  [>] => >
)

例子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>

顯示字符和實體名:

 Array
(
  ["] => "
  [&] => &
  [<] => <
  [>] => >
  [ ] =>
    [?] => ?
  [?] => ¢
  [?] => £
  [?] => ¤
  [?] => ¥
  [?] => |
  [?] => §
  [?] => ¨
  [?] => ?
  [?] => a
  [?] => ?
  [?] => ?
  [?] => -
  [?] => ?
  [?] => ˉ
  [?] => °
  [?] => ±
  [?] => 2
  [?] => 3
  [?] => ′
  [?] => μ
  [?] => ?
  [?] => ·
  [?] => ?
  [?] => 1
  [?] => o
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => à
  [?] => á
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => è
  [?] => é
  [?] => ê
  [?] => ?
  [?] => ì
  [?] => í
  [?] => ?
  [?] => ?
  [?] => D
  [?] => ?
  [?] => ò
  [?] => ó
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ×
  [?] => ?
  [?] => ù
  [?] => ú
  [?] => ?
  [?] => ü
  [?] => Y
  [?] => T
  [?] => ?
  [?] => à
  [?] => á
  [?] => a
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => è
  [?] => é
  [?] => ê
  [?] => ?
  [?] => ì
  [?] => í
  [?] => ?
  [?] => ?
  [?] => e
  [?] => ?
  [?] => ò
  [?] => ó
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ÷
  [?] => ?
  [?] => ù
  [?] => ú
  [?] => ?
  [?] => ü
  [?] => y
  [?] => t
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?

  [?] => ?
  [?] => ?
  [?] => ?
  [Α] => Α
  [Β] => Β
  [Γ] => Γ
  [Δ] => Δ
  [Ε] => Ε
  [Ζ] => Ζ
  [Η] => Η
  [Θ] => Θ
  [Ι] => Ι
  [Κ] => Κ
  [Λ] => Λ
  [Μ] => Μ
  [Ν] => Ν
  [Ξ] => Ξ
  [Ο] => Ο
  [Π] => Π
  [Ρ] => Ρ
  [Σ] => Σ
  [Τ] => Τ
  [Υ] => Υ
  [Φ] => Φ
  [Χ] => Χ
  [Ψ] => Ψ
  [Ω] => Ω
  [α] => α
  [β] => β
  [γ] => γ
  [δ] => δ
  [ε] => ε
  [ζ] => ζ
  [η] => η
  [θ] => θ
  [ι] => ι
  [κ] => κ
  [λ] => λ
  [μ] => μ
  [ν] => ν
  [ξ] => ξ
  [ο] => ο
  [π] => π
  [ρ] => ρ
  [?] => ?
  [σ] => σ
  [τ] => τ
  [υ] => υ
  [φ] => φ
  [χ] => χ
  [ψ] => ψ
  [ω] => ω
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => –
  [?] => —
  [?] => &#39;
  [?] => &#39;
  [?] => ?
  [?] => “
  [?] => ”
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => …
  [?] => ‰
  [′] => ′
  [″] => ″
  [?] => ?
  [?] => ?
  [ ̄] =>  ̄
  [?] => ?
  [?] => €
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [←] => ←
  [↑] => ↑
  [→] => →
  [↓] => ↓
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [∈] => ∈
  [?] => ?
  [?] => ?
  [∏] => ∏
  [∑] => ∑
  [?] => ?
  [?] => ?
  [√] => √
  [∝] => ∝
  [∞] => ∞
  [∠] => ∠
  [∧] => ∧
  [∨] => ∨
  [∩] => ∩
  [∪] => ∪
  [∫] => ∫
  [∴] => ∴
  [~] => ~
  [?] => ?
  [≈] => ≈
  [≠] => ≠
  [≡] => ≡
  [≤] => ≤
  [≥] => ≥
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [⊕] => ⊕
  [?] => ?
  [⊥] => ⊥
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
  [?] => ?
)
同類函數
  • 獲取不匹配遮罩的起始子字符串的長度 strcspn

    strcspn

    獲取不匹配遮罩的起始子字符串的長度
  • 返回有關字符串中使用的字符的信息-統計string 中每個字節值(0..255)出現的次數 count_chars

    count_chars

    返回有關字符串中使用的字符的信息-統計s
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 查找字符串的首次出現 strstr

    strstr

    查找字符串的首次出現
  • 不區分大小寫的strstr stristr

    stristr

    不區分大小寫的strstr
  • 計算兩個字符串之間的相似性 similar_text

    similar_text

    計算兩個字符串之間的相似性
  • 從字符串中刪除HTML和PHP標記 strip_tags

    strip_tags

    從字符串中刪除HTML和PHP標記
  • 計算文件的sha1哈希值 sha1_file

    sha1_file

    計算文件的sha1哈希值