$tt="‘Dragon’";
echo $tt." ".strlen($tt);
$tt1=html_entity_decode($tt);
echo $tt1." ".strlen($tt1);
I am trying to decode the above string into 'Dragon' But I am unable to do it as the Output string $tt1 length is not 8 but 12. However, On viewing source code in Chrome, String is converted to 'Dragon'.
Here is the output of the code. If I try to access $tt1[0], then I am not getting ' but � .
‘Dragon’ 20
‘Dragon’ 12