- PHP's strength is its embedding in HTML.
- These HTML blocks should be in the same encoding as the PHP script embedded in it.
- Embedded HTML will be converted to the output encoding.
<?php
$string = "⿈黈"; echo $string[0];
?>æ—<?php
echo $string[1];
?>
Output
âæ—¿