如何将html数字字符引用转换为字符


How to convert html numeric character references to chars?

我有这个:[ «» ]如何将其转换为[ «» ] ?有一个php函数吗?

我不明白你的值是否需要在数组中,

如果它们只是变量,你可以这样做:

<?php
$from = "&#171;&#187;";
$to = html_entity_decode($from);
print($to);