현재 위치: > 함수 카테고리 모음> 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;
  [″] => ″
  [?] =>?
  [?] =>?
  [ ̄] =>  ̄
  [?] =>?
  [?] => €
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [←] =>}
  [↑] => ↑
  [→] => →
  [↓] => ↓
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [∈] => ∈입니다
  [?] =>?
  [?] =>?
  [∏] => ∏
  [∑] => ∑
  [?] =>?
  [?] =>?
  [√] => √
  [∝] => ∝
  [∞] => ∞
  [20] => ξ
  [∧] => ∧
  [∨] => ∨
  [∩] => ∩
  [∪] => ∪
  [∫] => ∫
  [∴] => ∴
  [~] => ~
  [?] =>?
  [≈] => ≈
  [≠] => ≠
  [≡] => 값
  [≤] => ≤
  [≥] => ≥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [⊕] => ⊕
  [?] =>?
  [⊥] => ⊥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
))
유사한 함수
  • 하나의 문자열을 사용하여 다른 문자열을 배열로 분할하십시오. explode

    explode

    하나의문자열을사용하여다른문자열을배열로
  • 대상 문자열에서 지정된 문자열의 마지막 발생을 계산합니다 (Case Insensitive). strripos

    strripos

    대상문자열에서지정된문자열의마지막발생을
  • 문자열에서 지정된 문자의 마지막 발생을 찾으십시오. strrchr

    strrchr

    문자열에서지정된문자의마지막발생을찾으십
  • HTML 엔티티를 해당 문자로 변환하십시오 html_entity_decode

    html_entity_decode

    HTML엔티티를해당문자로변환하십시오
  • 출력 형식 문자열 printf

    printf

    출력형식문자열
  • strstr의 별칭 strchr

    strchr

    strstr의별칭
  • 서식 된 문자열을 스트림에 쓰십시오 fprintf

    fprintf

    서식된문자열을스트림에쓰십시오
  • 백 슬래시를 사용하여 끈을 탈출합니다 addslashes

    addslashes

    백슬래시를사용하여끈을탈출합니다