I am working on a PHP 5.3 production server, so html_entity_decode($, ENT_XML1)
is not available.
My question is simple: What is the conversion method for example for Ÿ
to a byte?
I am working on a PHP 5.3 production server, so html_entity_decode($, ENT_XML1)
is not available.
My question is simple: What is the conversion method for example for Ÿ
to a byte?
$str = preg_replace('/&#(\d+);/me', 'chr(\\1)', $str);
Seems to be a hack for this problem.
Found at http://php.net/html_entity_decode#47371.
But I still don't understand the logic behind it.