<?php
$xml = <<< AAA
<test>c đưa lên 1 -> 10 k</test>
AAA;
$p = xml_parser_create();
xml_parse_into_struct($p, $xml, $vals, $index);
xml_parser_free($p);
print_r($vals);
I can get differnt result why? In my PC the result is
Array
(
[0] => Array
(
[tag] => TEST
[type] => complete
[level] => 1
[value] => c đưa lên 1 -> 10 k
)
)
In the procuction environment, the resut is
Array
(
[0] => Array
(
[tag] => TEST
[type] => complete
[level] => 1
[value] => c đưa lên 1 - 10 k
)
)
The > is disappear. Why?