လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> 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 ကို၏အစိတ်အပိုင်းတစ်ခုပြန်သွားပါ substr

    substr

    stringကို၏အစိတ်အပိုင
  • တစ် ဦး string ကိုအပေါ်တစ် ဦး ပုပ် 1 နှစ်ပြောင်းလဲလုပ်ဆောင်ပါ str_rot13

    str_rot13

    တစ်ဦးstringကိုအပေါ်တ
  • သက်ဆိုင်သောအက္ခရာများအားလုံးကို HTML အဖွဲ့အစည်းများသို့ပြောင်းပါ htmlentities

    htmlentities

    သက်ဆိုင်သောအက္ခရာမျာ
  • ယုတ္တိဖြစ်သောဟေဗြဲဘာသာကို Visual-Hebrew သို့ပြောင်းရန်နှင့်အသစ်များပြောင်းလဲပါ hebrevc

    hebrevc

    ယုတ္တိဖြစ်သောဟေဗြဲဘာ
  • သတ်မှတ်ထားသောပုံစံအရဇာတ်ကောင်များ 0 င်သည် sscanf

    sscanf

    သတ်မှတ်ထားသောပုံစံအရ
  • တစ်ခုထွက်ပြေးလွတ်မြောက် string ကိုထုတ်ဖော်ပြသခဲ့သည် stripslashes

    stripslashes

    တစ်ခုထွက်ပြေးလွတ်မြေ
  • မျက်နှာဖုံးနှင့်မကိုက်ညီသောအစအလွှာ၏အရှည်ကိုရယူပါ strcspn

    strcspn

    မျက်နှာဖုံးနှင့်မကို
  • hexadecimal string ကို binary string ကိုပြောင်းပါ hex2bin

    hex2bin

    hexadecimalstringကို