Lines Matching refs:mb_encode_numericentity

2 Test mb_encode_numericentity() function: Convert text to HTML entities
10 echo "1: " . mb_encode_numericentity($str1, $convmap, "UTF-8") . "\n";
11 echo "1 (hex): " . mb_encode_numericentity($str1, $convmap, "UTF-8", true) . "\n";
12 echo "2: " . mb_encode_numericentity($str2, $convmap, "UTF-8") . "\n";
15 echo "3: " . mb_encode_numericentity('aŒbœcŠdše€fg', $convmap, "UTF-8") . "\n";
18 echo "4: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
21 echo "6: " . mb_encode_numericentity("\x00", array(0, 1, 0, 0xFFFF), "UTF-8", false) . "\n";
22 echo "6 (hex): " . mb_encode_numericentity("\x00", array(0, 1, 0, 0xFFFF), "UTF-8", true) . "\n";
29 echo "7: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
30 echo "7 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
34 echo "8: " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8") . "\n";
35 echo "8 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
39 echo "9: " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8") . "\n";
40 echo "9 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
44 echo "10: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
45 echo "10 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
50 echo "11: " . mb_encode_numericentity($iso2022jp, $convmap, "ISO-2022-JP") . "\n";
51 echo "11 (hex): " . mb_encode_numericentity($iso2022jp, $convmap, "ISO-2022-JP", true) . "\n";
55 echo "12: " . mb_encode_numericentity("m", $convmap, "ASCII") . "\n";