လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> 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←
  [↑] =>> ↑
  [→] = >> →→
  [↓] =>> ↓
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [∈] =>> ∈
  [?] =>?
  [?] =>?
  [π] =>> π
  [σ] =>> σ
  [?] =>?
  [?] =>?
  [√] =>> √
  [α] => α
  [∞] =>> ∞
  [∠] =>> ∠
  [∧] =>> ∧
  [∨] =>> ∨
  [∩] =>> ∩
  [∪] =>> ∪
  [∫] =>> ∫
  [∴] =>> ∴
  [~] =>> ~
  [?] =>?
  [≈] =>> ≈
  [≠] =>> ≠
  [≡] =>> ≡
  [≤] =>> ≤
  [≥] =>> ≥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [⊕] =>> ⊕
  [?] =>?
  [⊥] =>> ⊥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
)
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • string တစ်ခုအစတွင်စာလုံးများစွာကို binary ဘေးကင်းလုံခြုံနှိုင်းယှဉ်နှိုင်းယှဉ်ခြင်း (ကိစ္စတွင်အာရုံမခံစားနိုင်သော) strncasecmp

    strncasecmp

    stringတစ်ခုအစတွင်စာလ
  • ကြိုးများ၌အလွှာများ၏ပထမ ဦး ဆုံးဖြစ်ပျက်မှုကိုရှာပါ strpos

    strpos

    ကြိုးများ၌အလွှာများ၏
  • String တွင်အသုံးပြုသောဇာတ်ကောင်များအကြောင်းသတင်းအချက်အလက်များကိုပြန်လည်ထူထောင်ခြင်း - byte တန်ဖိုးတစ်ခုစီ၏အကြိမ်အရေအတွက်ကိုရေတွက်သည်။ count_chars

    count_chars

    Stringတွင်အသုံးပြုသေ
  • အထူး HTML အဖွဲ့အစည်းများကိုပုံမှန်ဇာတ်ကောင်များသို့ပြန်သွားပါ htmlspecialchars_decode

    htmlspecialchars_decode

    အထူးHTMLအဖွဲ့အစည်းမျ
  • စာလုံးကြီး၏ပထမ ဦး ဆုံးအက်ခရာကိုသတ်မှတ်ပါ ucfirst

    ucfirst

    စာလုံးကြီး၏ပထမဦးဆုံး
  • တစ်ထောင် sinkator အတွက်နံပါတ် format number_format

    number_format

    တစ်ထောင်sinkatorအတွက
  • addcslashes သုံး. string ကိုဆန့်ကျင်ရေးဆန့်ကျင်ရေးဆန့်ကျင်ရေး stripcslashes

    stripcslashes

    addcslashesသုံး.stri
  • ကြိုးမှ HTML နှင့် PHP tags များကိုဖယ်ရှားပါ strip_tags

    strip_tags

    ကြိုးမှHTMLနှင့်PHPt