• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    PHP get_html_translation_table()函数用法讲解

    PHP get_html_translation_table() 函数

    实例

    输出 htmlspecialchars 函数使用的翻译表:

    ?php 
    print_r (get_html_translation_table()); // HTML_SPECIALCHARS is default. 
    ?>

    定义和用法

    get_html_translation_table()函数返回htmlentities()htmlspecialchars()函数使用的翻译表。

    提示:一些字符可以按照若干种方式进行编码。get_html_translation_table() 函数返回最普通的编码。

    语法

    get_html_translation_table( _function,flags,character-set_ )

    实例

    HTML_SPECIALCHARS 的翻译表:

    ?php 
    print_r (get_html_translation_table(HTML_SPECIALCHARS)); 
    ?>
    Displaying character and entity name:
    Array 
    ( 
    ["] => quot; 
    [] =>  
    [] => lt; 
    [>] => gt; 
    )

    实例 2

    HTML_ENTITIES 的翻译表:

    ?php 
    print_r (get_html_translation_table(HTML_ENTITIES)); 
    ?>

    显示字符及其对应的实体名称:

    Array 

    ["] => quot; 
    [] =>  
    [] => lt; 
    [>] => gt; 
    [ ] => nbsp; 
    [¡] => iexcl; 
    [¢] => cent; 
    [£] => pound; 
    [¤] => curren; 
    [¥] => yen; 
    [¦] => brvbar; 
    [§] => sect; 
    [¨] => uml; 
    [©] => copy; 
    [ª] => ordf; 
    [«] => laquo; 
    [¬] => not; 
    [­] => shy; 
    [®] => reg; 
    [¯] => macr; 
    [°] => deg; 
    [±] => plusmn; 
    [²] => sup2; 
    [³] => sup3; 
    [´] => acute; 
    [µ] => micro; 
    [¶] => para; 
    [·] => middot; 
    [¸] => cedil; 
    [¹] => sup1; 
    [º] => ordm; 
    [»] => raquo; 
    [¼] => frac14; 
    [½] => frac12; 
    [¾] => frac34; 
    [¿] => iquest; 
    [À] => Agrave; 
    [Á] => Aacute; 
    [Â] => Acirc; 
    [Ã] => Atilde; 
    [Ä] => Auml; 
    [Å] => Aring; 
    [Æ] => AElig; 
    [Ç] => Ccedil; 
    [È] => Egrave; 
    [É] => Eacute; 
    [Ê] => Ecirc; 
    [Ë] => Euml; 
    [Ì] => Igrave; 
    [Í] => Iacute; 
    [Î] => Icirc; 
    [Ï] => Iuml; 
    [Ð] => ETH; 
    [Ñ] => Ntilde; 
    [Ò] => Ograve; 
    [Ó] => Oacute; 
    [Ô] => Ocirc; 
    [Õ] => Otilde; 
    [Ö] => Ouml; 
    [×] => times; 
    [Ø] => Oslash; 
    [Ù] => Ugrave; 
    [Ú] => Uacute; 
    [Û] => Ucirc; 
    [Ü] => Uuml; 
    [Ý] => Yacute; 
    [Þ] => THORN; 
    [ß] => szlig; 
    [à] => agrave; 
    [á] => aacute; 
    [â] => acirc; 
    [ã] => atilde; 
    [ä] => auml; 
    [å] => aring; 
    [æ] => aelig; 
    [ç] => ccedil; 
    [è] => egrave; 
    [é] => eacute; 
    [ê] => ecirc; 
    [ë] => euml; 
    [ì] => igrave; 
    [í] => iacute; 
    [î] => icirc; 
    [ï] => iuml; 
    [ð] => eth; 
    [ñ] => ntilde; 
    [ò] => ograve; 
    [ó] => oacute; 
    [ô] => ocirc; 
    [õ] => otilde; 
    [ö] => ouml; 
    [÷] => divide; 
    [ø] => oslash; 
    [ù] => ugrave; 
    [ú] => uacute; 
    [û] => ucirc; 
    [ü] => uuml; 
    [ý] => yacute; 
    [þ] => thorn; 
    [ÿ] => yuml; 
    [Œ] => OElig; 
    [œ] => oelig; 
    [Š] => Scaron; 
    [š] => scaron; 
    [Ÿ] => Yuml; 
    [ƒ] => fnof; 
    [ˆ] => circ; 
    [˜] => tilde; 
    [Α] => Alpha; 
    [Β] => Beta; 
    [Γ] => Gamma; 
    [Δ] => Delta; 
    [Ε] => Epsilon; 
    [Ζ] => Zeta; 
    [Η] => Eta; 
    [Θ] => Theta; 
    [Ι] => Iota; 
    [Κ] => Kappa; 
    [Λ] => Lambda; 
    [Μ] => Mu; 
    [Ν] => Nu; 
    [Ξ] => Xi; 
    [Ο] => Omicron; 
    [Π] => Pi; 
    [Ρ] => Rho; 
    [Σ] => Sigma; 
    [Τ] => Tau; 
    [Υ] => Upsilon; 
    [Φ] => Phi; 
    [Χ] => Chi; 
    [Ψ] => Psi; 
    [Ω] => Omega; 
    [α] => alpha; 
    [β] => beta; 
    [γ] => gamma; 
    [δ] => delta; 
    [ε] => epsilon; 
    [ζ] => zeta; 
    [η] => eta; 
    [θ] => theta; 
    [ι] => iota; 
    [κ] => kappa; 
    [λ] => lambda; 
    [μ] => mu; 
    [ν] => nu; 
    [ξ] => xi; 
    [ο] => omicron; 
    [π] => pi; 
    [ρ] => rho; 
    [ς] => sigmaf; 
    [σ] => sigma; 
    [τ] => tau; 
    [υ] => upsilon; 
    [φ] => phi; 
    [χ] => chi; 
    [ψ] => psi; 
    [ω] => omega; 
    [ϑ] => thetasym; 
    [ϒ] => upsih; 
    [ϖ] => piv; 
    [ ] => ensp; 
    [ ] => emsp; 
    [ ] => thinsp; 
    [‌] => zwnj; 
    [‍] => zwj; 
    [‎] => lrm; 
    [‏] => rlm; 
    [–] => ndash; 
    [—] => mdash; 
    ['] => lsquo; 
    ['] => rsquo; 
    [‚] => sbquo; 
    ["] => ldquo; 
    ["] => rdquo; 
    [„] => bdquo; 
    [†] => dagger; 
    [‡] => Dagger; 
    [•] => bull; 
    […] => hellip; 
    [‰] => permil; 
    [′] => prime; 
    [″] => Prime; 
    [‹] => lsaquo; 
    [›] => rsaquo; 
    [‾] => oline; 
    [⁄] => frasl; 
    [€] => euro; 
    [ℑ] => image; 
    [℘] => weierp; 
    [ℜ] => real; 
    [™] => trade; 
    [ℵ] => alefsym; 
    [←] => larr; 
    [↑] => uarr; 
    [→] => rarr; 
    [↓] => darr; 
    [↔] => harr; 
    [↵] => crarr; 
    [⇐] => lArr; 
    [⇑] => uArr; 
    [⇒] => rArr; 
    [⇓] => dArr; 
    [⇔] => hArr; 
    [∀] => forall; 
    [∂] => part; 
    [∃] => exist; 
    [∅] => empty; 
    [∇] => nabla; 
    [∈] => isin; 
    [∉] => notin; 
    [∋] => ni; 
    [∏] => prod; 
    [∑] => sum; 
    [−] => minus; 
    [∗] => lowast; 
    [√] => radic; 
    [∝] => prop; 
    [∞] => infin; 
    [∠] => ang; 
    [∧] => and; 
    [∨] => or; 
    [∩] => cap; 
    [∪] => cup; 
    [∫] => int; 
    [∴] => there4; 
    [∼] => sim; 
    [≅] => cong; 
    [≈] => asymp; 
    [≠] => ne; 
    [≡] => equiv; 
    [≤] => le; 
    [≥] => ge; 
    [⊂] => sub; 
    [⊃] => sup; 
    [⊄] => nsub; 
    [⊆] => sube; 
    [⊇] => supe; 
    [⊕] => oplus; 
    [⊗] => otimes; 
    [⊥] => perp; 
    [⋅] => sdot; 
    [⌈] => lceil; 
    [⌉] => rceil; 
    [⌊] => lfloor; 
    [⌋] => rfloor; 
    [〈] => lang; 
    [〉] => rang; 
    [◊] => loz; 
    [♠] => spades; 
    [♣] => clubs; 
    [♥] => hearts; 
    [♦] => diams; 
    )

    总结

    以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对脚本之家的支持。如果你想了解更多相关内容请查看下面相关链接

    您可能感兴趣的文章:
    • PHP正则判断一个变量是否为正整数的方法
    • PHP正则验证字符串是否为数字的两种方法并附常用正则
    • PHP判断是否是微信打开还是浏览器打开的方法
    • asp函数split()对应php函数explode()
    • PHP htmlentities()函数用法讲解
    • PHP html_entity_decode()函数讲解
    • PHP hex2bin()函数用法讲解
    • PHP hebrev()函数用法讲解
    • php二维数组按某个键值排序的实例讲解
    • PHP实时统计中文字数和区别
    上一篇:PHP5.5基于mysqli连接MySQL数据库和读取数据操作实例详解
    下一篇:PHP-FPM 的管理和配置详解
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    PHP get_html_translation_table()函数用法讲解 PHP,get,html,translation,table,