|
@@ -223,6 +223,22 @@ if (!function_exists('get_order_letter')) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 过滤emoji表情
|
|
|
|
|
+ * @param string $str
|
|
|
|
|
+ * @return string
|
|
|
|
|
+ */
|
|
|
|
|
+if (!function_exists('removeEmoji')) {
|
|
|
|
|
+ function removeEmoji(string $str = '') : string
|
|
|
|
|
+ {
|
|
|
|
|
+ $str = preg_replace('/[\x{1F600}-\x{1F64F}]/u', '', $str);
|
|
|
|
|
+ $str = preg_replace('/[\x{1F300}-\x{1F5FF}]/u', '', $str);
|
|
|
|
|
+ $str = preg_replace('/[\x{1F680}-\x{1F6FF}]/u', '', $str);
|
|
|
|
|
+ $str = preg_replace('/[\x{2600}-\x{26FF}]/u', '', $str);
|
|
|
|
|
+ return preg_replace('/[\x{2700}-\x{27BF}]/u', '', $str);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
if (!function_exists('object_array')) {
|
|
if (!function_exists('object_array')) {
|
|
|
/**
|
|
/**
|
|
|
* @param $array
|
|
* @param $array
|