摘要:
excel时间格式得到的是一串数字, //转换excel日期,date是数字private function excelTime($date, $time = false) { if(is_numeric($date)){ if(function_exists('GregorianToJD')){ 阅读全文
摘要:
/** * 将unicode转换成字符 * @param int $unicode * @return string UTF-8字符 **/ function unicode2Char($unicode){ if($unicode < 128) return chr($unicode); if($u 阅读全文
摘要:
1、修改数据库的字符支持,utf8==>utf8mb4 2、匹配出emoji表情,替换与还原 /** * 表情转换 更新到ios9.2涵盖编码范围 * @param $str * @return mixed */ public static function emoji_to_html($str) 阅读全文