⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlent.phpt

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 PHPT
字号:
--TEST--HTML input/output--SKIPIF--<?php 	ini_set('include_path','.'); 	extension_loaded('mbstring') or die('skip mbstring not available'); ?>--INI--output_buffering=4096output_handler=mb_output_handlerzlib.output_compression=arg_separator.input=xerror_reporting=0mbstring.http_input=HTML-ENTITIESmbstring.internal_encoding=UTF-8mbstring.http_output=HTML-ENTITIESmbstring.encoding_translation=1--FILE--<?php// enable output encoding through output handler//ob_start("mb_output_handler");// &#64... are must be decoded on input these are not reencoded on output. // If you see &#64;&#65;&#66; on output this means input encoding fails.// If you do not see &auml;... on output this means output encoding fails.// Using UTF-8 internally allows to encode/decode ALL characters.// &128... will stay as they are since their character codes are above 127// and they do not have a named entity representaion.?><?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?><?php mb_parse_str("test=&#38;&#64;&#65;&#66;&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;", $test);print_r($test);?>===DONE===--EXPECT--HTML-ENTITIES>UTF-8>HTML-ENTITIESArray(    [test] => &@AB&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;)===DONE===

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -