0
我使用preg_match我找不到为什么输入文字会变成乱码?如何解决它?preg_match转换输入文字有符号会变成乱码吗?
$输入来自loadHTML我不知道是不是在讨论有关这个问题
$input = $div->nodeValue;
print_r($input);
if (preg_match('/([\$€£])/', $input, $matches)) {
print_r($matches);
}
£25.00
Array
(
[0] => �25.00
[1] => �
[2] => 25.00
)
感谢您的描述!! – user1775888 2014-11-25 00:18:54