- var_dump: documentation ( source)
- html_entity_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$tests = array(
html_entity_decode('��', ENT_NOQUOTES, 'utf-8'),
html_entity_decode('𝄞')
);
foreach ($tests as $s) {
var_dump($s);
var_dump(json_encode($s));
var_dump(json_encode($s, JSON_UNESCAPED_UNICODE));
}