이모지 제거
$text = "😍안녕하세요 😍 잘지내시죠?💔ㅇㅋ'ㅇㄹ'\"df\""; $emojiPattern = '/[\\x{10000}-\\x{1FFFF}]/u'; preg_match_all($emojiPattern, $text, $emoji_out); //print_r($emoji_out); $text_out = preg_split( $emojiPattern, $text ); //print_r($text_out); $text = ''; $k = max(sizeof($emoji_out[0]),sizeof($text_out)); for($j=0; $j= 128) { if ($code < 224) { $bytesnumber = 2; } else if ($code < 240) { $bytesnumber = 3; } el..
2020.09.15