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