I use preg_match I can't find why the input text will become gibberish? how to solve it?
$input come from loadHTML I'm not sure is it related this problem
$input = $div->nodeValue;
print_r($input);
if (preg_match('/([\$€£])/', $input, $matches)) {
print_r($matches);
}
£25.00
Array
(
[0] => �25.00
[1] => �
[2] => 25.00
)