this symbol mean in PHP

 <?php

    $bchars=array(

        "\xe2\x80\x98", // left single quote

        "\xe2\x80\x99", // right single quote

        "\xe2\x80\x9c", // left double quote

        "\xe2\x80\x9d", // right double quote

        "\xe2\x80\x94", // em dash

        "\xe2\x80\xa6" // elipses

    );

    $fchars=array(

        "&#8216;",

        "&#8217;",

        '&#8220;',

        '&#8221;',

        '&mdash;',

        '&#8230;'

    );

    $html=str_replace($bchars,$fchars,$html);

?>



You can get more code of utf 8 idea on below URL: https://www.php.net/manual/en/function.utf8-decode.php


Comments