PHP
wz.lin
这个人很懒,什么也没留下
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
图片上传
class upload { protected $filename;//文件名 protected $fileMine;//文件上传类型 protected $filepath;//文件上传路径 protected $filemax;//文件上传大小 protected $fileExt;//文件上传格式 protected $fileerror;//文件出错设置 protected $file...转载 2018-11-29 15:34:42 · 194 阅读 · 0 评论 -
计算中文字符串长度
// 计算中文字符串长度 function utf8_strlen($string = null) { // 将字符串分解为单元 preg_match_all("/./us", $string, match);//返回单元个数returncount(match); // 返回单元个数 return count(match);//返回单元个数returncount(match[0])...原创 2018-12-03 14:51:04 · 1106 阅读 · 0 评论 -
一维数据数组生成数据树
/** * 一维数据数组生成数据树 * @param array $list 数据列表 * @param string $id 父ID Key * @param string $pid ID Key * @param string son定义子数据Key∗@returnarray∗/publicstaticfunctionarr2tree(son 定义子数据Key * @return a...原创 2019-03-09 15:42:59 · 416 阅读 · 0 评论
分享