摘要: <?php/* * 通用函数库 *//* * 断点调试 */function p($a) { echo '<pre>'; print_r($a); echo '</pre>'; exit();}/** mobile_login()是否登录 * @return number */function mo 阅读全文
posted @ 2018-06-07 18:34 jierong 阅读(1757) 评论(0) 推荐(0)
摘要: /** * list_sort_by()对查询结果集进行排序 * @param array $list 查询结果 * @param string $field 排序的字段名 * @param array $sortby 排序类型 * asc正向排序 desc逆向排序 nat自然排序 * @retur 阅读全文
posted @ 2018-06-07 18:32 jierong 阅读(2192) 评论(0) 推荐(0)
摘要: /** delDir()删除文件夹及文件夹内文件函数 * @param string $path 文件夹路径 * @param string $delDir 是否删除改 * @return boolean */function delDir($path, $del = false){ $handle 阅读全文
posted @ 2018-06-07 18:31 jierong 阅读(2500) 评论(0) 推荐(0)
摘要: /** getmessagepic()提取文章内容中的图片 * @param string $content * @return string */function getcontentpic($content) { $pic = ''; $content = stripslashes($conte 阅读全文
posted @ 2018-06-07 18:30 jierong 阅读(1717) 评论(0) 推荐(0)
摘要: /** cut_str()字符串截取函数 * @param string $str 截取对象 * @param number $len 截取长度 * @param number $start 截取开始位置 * @param number $suffix 结束位置是否加省略号 * @return st 阅读全文
posted @ 2018-06-07 18:29 jierong 阅读(560) 评论(0) 推荐(0)
摘要: /** get_ip()获取真实IP函数 * @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字 * @return string */function get_true_ip($type=0){ $type = $type ? 1:0; static $ 阅读全文
posted @ 2018-06-07 18:28 jierong 阅读(1110) 评论(0) 推荐(0)