- mb_convert_encoding: documentation ( source)
<?php
$str = "Sorry that meant to say hungover and feeling sorry for myself. 😩";
$str = "I can spend upto £40 a week on cigarettes ... £160 a month. I could go on holiday for that ... ☀ðŸ˜";
echo mb_convert_encoding($str, "UTF-8");
//$pattern = '/[😩]/i';
// $str = preg_replace($pattern, '', $str);
// echo $str;