1--TEST-- 2htmlentities() / html_entity_decode() #8592 - #9002 table test 3--FILE-- 4<?php 5$tests = array( 6 array(8853, '⊕', "e28a95"), 7 array(8855, '⊗', "e28a97"), 8 array(8869, '⊥', "e28aa5"), 9 array(8901, '⋅', "e28b85"), 10 array(8968, '⌈', "e28c88"), 11 array(8969, '⌉', "e28c89"), 12 array(8970, '⌊', "e28c8a"), 13 array(8971, '⌋', "e28c8b"), 14 array(9001, '⟨', "e28ca9"), 15 array(9002, '⟩', "e28caa") 16); 17 18foreach ($tests as $test) { 19 var_dump(htmlentities(pack('H*', $test[2]), ENT_QUOTES, 'UTF-8')); 20} 21 22foreach ($tests as $test) { 23 list(,$result) = unpack('H6', html_entity_decode($test[1], ENT_QUOTES, 'UTF-8')); 24 var_dump($result); 25} 26?> 27--EXPECT-- 28string(7) "⊕" 29string(8) "⊗" 30string(6) "⊥" 31string(6) "⋅" 32string(7) "⌈" 33string(7) "⌉" 34string(8) "⌊" 35string(8) "⌋" 36string(6) "⟨" 37string(6) "⟩" 38string(6) "e28a95" 39string(6) "e28a97" 40string(6) "e28aa5" 41string(6) "e28b85" 42string(6) "e28c88" 43string(6) "e28c89" 44string(6) "e28c8a" 45string(6) "e28c8b" 46string(6) "e28ca9" 47string(6) "e28caa" 48