Position actuelle: Accueil> Catégories de fonctions> get_html_translation_table

get_html_translation_table

Renvoie le tableau de conversion après avoir utilisé htmlSpecialChars () et htmlentities ()
Nom:get_html_translation_table
Catégorie:Chaîne
Langage de programmation:php
Description en une ligne:Renvoie la table de traduction utilisée par htmlSpecialChars () et htmlentities ().

Exemple

Exemple 1

Sortie la table de traduction utilisée par la fonction 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 est la valeur par défaut</span>
<span class="token delimiter important">?></span></span>

Essayez-le vous-même

Exemple 2

Tableau de traduction 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>

Afficher les noms de caractère et d'entité:

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

Exemple 3

Tableau de traduction HTML_ENTITITION:

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

Afficher les noms de caractère et d'entité:

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

  [?] =>?
  [?] =>?
  [?] =>?
  [Α] => α
  [Β] => β
  [Γ] => γ
  [Δ] => Δ
  [Ε] => ε
  [Ζ] => ζ
  [Η] => η
  [Θ] => θ
  [Ι] => ι
  [Κ] => κ
  [Λ] => λ
  [Μ] => μ
  [Ν] => ν
  [Ξ] => ξ
  [Ο] => ο
  [Π] => π
  [Ρ] => ρ
  [Σ] => σ
  [Τ] => τ
  [Υ] => υ
  [Φ] => φ
  [Χ] => χ
  [Ψ] => ψ
  [Ω] => Ω
  [α] => α
  [β] => β
  [γ] => γ
  [Δ] => Δ
  [ε] => ε
  [ζ] => ζ
  [η] => η
  [θ] => θ
  [ι] => ι
  [κ] => κ
  [λ] => λ
  [μ] => μ
  [ν] => ν
  [ξ] => ξ
  [ο] => ο
  [π] => π
  [ρ] => ρ
  [?] =>?
  [σ] => σ
  [τ] => τ
  [υ] => υ
  [φ] => φ
  [χ] => χ
  [ψ] => ψ
  [ω] => Ω
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] => -
  [?] => -
  [?] => &#39;
  [?] => &#39;
  [?] =>?
  [?] => "
  [?] => "
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>…
  [?] => ‰
  [′] => ′
  [″] => ″
  [?] =>?
  [?] =>?
  [ ̄] =>  ̄
  [?] =>?
  [?] => €
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [←] => ←
  [↑] => ↑
  [→] => →
  [↓] => ↓
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [∈] => ∈
  [?] =>?
  [?] =>?
  [∏] => ∏
  [∑] => ∑
  [?] =>?
  [?] =>?
  [√] => √
  [∝] => ∝
  [∞] => ∞
  [∠] => ∠
  [∧] => ∧
  [∨] => ∨
  [∩] => ∩
  [∪] => ∪
  [∫] => ∫
  [∴] => ∴
  [~] => ~
  [?] =>?
  [≈] => ≈
  [≠] => ≠
  [≡] => ≡
  [≤] => ≤
  [≥] => ≥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [⊕] => ⊕
  [?] =>?
  [⊥] => ⊥
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
  [?] =>?
)
Fonctions similaires
  • Calculez la dernière occurrence de la chaîne spécifiée dans la chaîne cible (cas insensible) strripos

    strripos

    Calculezladernièreoc
  • Calculez la valeur de hachage SHA1 d'une chaîne sha1

    sha1

    Calculezlavaleurdeha
  • Obtenez la longueur de la chaîne strlen

    strlen

    Obtenezlalongueurdel
  • Trouvez n'importe lequel d'un ensemble de caractères dans une chaîne - renvoyez une sous-chaîne qui commence par le caractère trouvé strpbrk

    strpbrk

    Trouvezn'importe
  • Calculez la longueur de la première sous-chaîne dans laquelle tous les caractères de la chaîne existent dans le jeu de caractères spécifié strspn

    strspn

    Calculezlalongueurde
  • Trouvez la première occurrence de sous-chaînes dans les cordes strpos

    strpos

    Trouvezlapremièreocc
  • Parses entra les caractères selon le format spécifié sscanf

    sscanf

    Parsesentralescaract
  • Trouvez l'emplacement où la chaîne apparaît d'abord (cas insensible) stripos

    stripos

    Trouvezl'emplace