လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> get_html_translation_table

get_html_translation_table

htmlspecialchars () နှင့် htmlenties () ကိုအသုံးပြုပြီးနောက်ပြောင်းလဲခြင်းစားပွဲကိုပြန်ပို့သည် ()
အမည်:get_html_translation_table
အမျိုးအစား:ကြိုး
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:HTMLSPECALCALCHARCHAR () နှင့် htmlenties) မှအသုံးပြုသောဘာသာပြန်စားပွဲထိုးကိုပြန်ပို့သည်။

နမူနာ

ဥပမာ 1

ဘာသာပြန်စာသားကို htmlspecialchars function ကိုအသုံးပြုပါ။

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

ဇာတ်ကောင်နှင့် entity အမည်များကိုပြပါ:

 အခင်းအကျင်း
(
  ["] =>"
  [&] =>> & &
  [<] => <
  [>] =>>
)

ဥပမာ 3

html_enteries ဘာသာပြန်စာသားကို:

 <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_entries</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">></span></span>

ဇာတ်ကောင်နှင့် entity အမည်များကိုပြပါ:

 အခင်းအကျင်း
(
  ["] =>"
  [&] =>> & &
  [<] => <
  [>] =>>
  [] =>>
    [?] =>?
  [?] => ¢
  [?] => £
  [?] => ¤
  [?] => ¥
  [?] =>> |
  [?] => §
  [?] => ¨
  [?] =>?
  [?] => က
  [?] =>?
  [?] =>?
  [?] => -
  [?] =>?
  [?] => ˉ
  [?] => °
  [?] => ±
  [?] => 2
  [?] => 3
  [?] => &#39;&#39;
  [?] => μ
  [?] =>?
  [?] => ·
  [?] =>?
  [?] => 1
  [?] => အို
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>> à
  [?] => á
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => è
  [?] => é
  [?] = >>
  [?] =>?
  [?] => ì
  [?] =>
  [?] =>?
  [?] =>?
  [?] => d
  [?] =>?
  [?] =>
  [?] => ó
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => ×
  [?] =>?
  [?] => ဗ်
  [?] => ú>
  [?] =>?
  [?] => ü
  [?] => y
  [?] => t
  [?] =>?
  [?] =>> à
  [?] => á
  [?] => က
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => è
  [?] => é
  [?] = >>
  [?] =>?
  [?] => ì
  [?] =>
  [?] =>?
  [?] =>?
  [?] => အီး
  [?] =>?
  [?] =>
  [?] => ó
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => ÷
  [?] =>?
  [?] => ဗ်
  [?] => ú>
  [?] =>?
  [?] => ü
  [?] => y
  [?] => t
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?

  [?] =>?
  [?] =>?
  [?] =>?
  [α] => α
  [β] =>> β
  [γ] =>> γ
  [δ] =>> δ
  [ε] =>> ε
  [ζ] =>> ζ
  [η] =>> η
  [θ] => θ
  [ι] =>> ι
  [κ] =>> κ
  [λ] =>> λ
  [μ] =>> μ
  [ν] =>> ν
  [ξ] =>> ξ
  [] = >> ο
  [π] =>> π
  [ρ] =>> ρ
  [σ] =>> σ
  [τ] =>> τ
  [υ] =>> υ
  [φ] =>> φ
  [χ] =>> χ
  [ψ] =>> ψ
  [ω] =>> ω
  [α] => α
  [β] =>> β
  [γ] =>> γ
  [δ] =>> δ
  [ε] =>> ε
  [ζ] =>> ζ
  [η] =>> η
  [θ] => θ
  [ι] =>> ι
  [κ] =>> κ
  [λ] =>> λ
  [μ] =>> μ
  [ν] =>> ν
  [ξ] =>> ξ
  [] = >> ο
  [π] =>> π
  [ρ] =>> ρ
  [?] =>?
  [σ] =>> σ
  [τ] =>> τ
  [υ] =>> υ
  [φ] =>> φ
  [χ] =>> χ
  [ψ] =>> ψ
  [ω] =>> ω
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => -
  [?] => -
  [?] => &#39;&#39;
  [?] => &#39;&#39;
  [?] =>?
  [?] => ""
  [?] => ""
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => ...
  [?] => ‰
  [&#39;] =>&#39;
  ["] =>"
  [?] =>?
  [?] =>?
  [¯] =>> ¯
  [?] =>?
  [?] => €
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [←] =>> ←←c←
  [↑] =>> ↑
  [→] = >> →→
  [↓] =>> ↓
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [∈] =>> ∈
  [?] =>?
  [?] =>?
  [π] =>> π
  [σ] =>> σ
  [?] =>?
  [?] =>?
  [√] =>> √
  [α] => α
  [∞] =>> ∞
  [∠] =>> ∠
  [∧] =>> ∧
  [∨] =>> ∨
  [∩] =>> ∩
  [∪] =>> ∪
  [∫] =>> ∫
  [∴] =>> ∴
  [~] =>> ~
  [?] =>?
  [≈] =>> ≈
  [≠] =>> ≠
  [≡] =>> ≡
  [≤] =>> ≤
  [≥] =>> ≥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [⊕] =>> ⊕
  [?] =>?
  [⊥] =>> ⊥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
)
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • backslash ကိုအသုံးပြုပြီးကြိုးမှထွက်ပြေး addslashes

    addslashes

    backslashကိုအသုံးပြု
  • C startion တွင် backslashes ကို အသုံးပြု. string တစ်ခုအတွက်ဇာတ်ကောင်များလွတ်မြောက်ခြင်း addcslashes

    addcslashes

    Cstartionတွင်backsla
  • ကျပန်းတစ် string ကိုနှောင့်အယှက် str_shuffle

    str_shuffle

    ကျပန်းတစ်stringကိုနှ
  • string အရှည်ရယူပါ strlen

    strlen

    stringအရှည်ရယူပါ
  • နံပါတ်များမှ single-byte ကြိုးများကိုထုတ်လုပ်ပါ chr

    chr

    နံပါတ်များမှsingle-b
  • strings များကို array သို့ပြောင်းပါ str_split

    str_split

    stringsများကိုarrayသ
  • ကြိုး၏ soundex key ကိုတွက်ချက်ပါ soundex

    soundex

    ကြိုး၏soundexkeyကိုတ
  • string ၏အဆုံးမှာ whitespace ဇာတ်ကောင် (သို့မဟုတ်အခြားဇာတ်ကောင်) ကိုဖျက်ပါ rtrim

    rtrim

    string၏အဆုံးမှာwhite