自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 PHP 获取最近几天有效工作日的时间

$day_interval = 3; $time_date = ["0", "1", "2", "3", "4", "5", "6"]; $this::timeQuantum($day_interval, $time_date, $result); public static function timeQuantum($day_interval, &$time_date = ar...

2020-03-04 10:47:06 392

原创 设置时区

<?phpdate_default_timezone_set(timezone_identifier:'Asia/Shanghai');$time=time();echo date(format:"Y-m-d H:i:s",$time);

2019-08-07 09:05:33 280

原创 数据导入 处理获取最大列问题

if(empty(STATIC_URL.$path) or !file_exists($path)){die('file not exists');}$PHPReader = new \PHPExcel_Reader_Excel2007(); //建立reader对象if(!$PHPReader->canRead($path)){ $PHPReader = new...

2019-07-09 17:08:19 546

转载 处理转换字母

public function pinyin(){ return $pinyin=array( "A"=>array(59371,41648,50400,33157,41392,18661,47599), "Ai"=>array(19697,32178,35504,36856,20712,25068,28663,26608,29399,1...

2019-04-09 17:40:53 1892

转载 头像处理圆角处理

public static function url_img($userAvatar,$radius=200,$user_id){ $ext = getimagesize($userAvatar); $src_img = null; switch ($ext[2]){ case 2: $src_img = imagecreatef...

2019-04-01 09:26:32 507

翻译 yii group by

\Yii::$app->db->createCommand("set session sql_mode = 'NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES'")->execute();

2019-03-25 15:07:31 1016

转载 汉字获取首字母

public static getFirstChar($s){$s0 = mb_substr($s,0,3); //获取名字的姓$s = iconv('UTF-8','gb2312', $s0); //将UTF-8转换成GB2312编码//dump($s0);if (ord($s0)>128) { //汉字开头,汉字没有以U、V开头的 $asc=ord($s{0}...

2019-03-24 20:48:17 1194

原创 laravel 上传图片 或word或excel储存不了后缀

单文件的$request-&gt;file('files')-&gt;storeAs('files',file('files')-&gt; getClientOriginalName());多文件的$files = $request['files'];if (!empty($files)) {        foreach ($files as $k1 =&gt; $v2) {          ...

2018-07-11 11:23:55 837

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除