摘要: function getFirstCharter($str) { if (empty($str)) { return ''; } $fchar = ord($str{0}); if ($fchar >= ord('A') && $fchar <= ord('z')) return strtouppe 阅读全文
posted @ 2018-12-28 14:26 able-woman 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 公共方法 UploadFile.class.php() // 开始 // 结束 // 举个例子上传 -- 开始 // 举个例子上传 -- 结束 // 举个例子下载 -- 开始 // 举个例子下载 -- 结束 阅读全文
posted @ 2018-06-29 19:44 able-woman 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/u011341352/article/details/70211962 以下是公共类PHPExcel.php文件: // 开始 阅读全文
posted @ 2018-06-29 19:35 able-woman 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: 这些函数提供参考,想了解具体的使用方式可进行百度1、html_entity_decode()函数 含义:把 HTML 实体转换为字符,html_entity_decode() 函数是 htmlentities() 函数的反函数 语法:html_entity_decode(string,flags,c 阅读全文
posted @ 2018-02-01 17:55 able-woman 阅读(142) 评论(0) 推荐(0) 编辑
摘要: foreach ($list['company_list'] as $key => $value) { $list['company_list'][$key]['summary'] =strip_tags($list['company_list'][$key]['summary']);//去除htm 阅读全文
posted @ 2017-10-11 09:49 able-woman 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 1、在需要同步到页面模板的方法中添加一个sign值,如下: 2、在页面模板中建立随sign属性值改变其标题: 3、在页面模板的JS文件中添加sign,列如: 阅读全文
posted @ 2017-10-09 09:10 able-woman 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: 会话控制是什么? cookie和session都是跟踪整个会话过程的技术手段。而会话,就是用户通过浏览器和服务器的一次通话。 为什么要有会话控制? 因为HTTP协议是无状态的,服务器不知道用户上一次做了什么,这严重阻碍了交互式web应用程序的实现。HTTP不通过额外的手段,服务器并不知道用户做了什么 阅读全文
posted @ 2017-09-20 11:02 able-woman 阅读(2285) 评论(0) 推荐(0) 编辑
摘要: A($name,$layer='',$level=0) // 实例化多层控制器 格式:[资源://][模块/]控制器 B($name, $tag='',&$params=NULL) // 执行某个行为 C($name=null, $value=null,$default=null) // 获取和设置 阅读全文
posted @ 2017-09-11 16:57 able-woman 阅读(248) 评论(0) 推荐(0) 编辑
摘要: strtotime:将英文文本日期时间解析为 Unix 时间戳 阅读全文
posted @ 2017-09-08 10:33 able-woman 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1、实现插入预定时间戳功能 $datas['time'] = strtotime( str_replace( array('年','月','日') , array('-','-','') , $datas['time']) ); 2、实现只能预约商品一次的功能 $checkUser = $this- 阅读全文
posted @ 2017-09-08 10:08 able-woman 阅读(178) 评论(0) 推荐(0) 编辑