yipeiwu_com6年前
本文实例讲述了php实现的读取CSV文件函数。分享给大家供大家参考,具体如下: function read_csv($cvs) { $shuang = false; $str...
yipeiwu_com6年前
本文实例讲述了PHP实现对数组分页处理方法。分享给大家供大家参考,具体如下: 最近用到了用数组数据分页,这里整理了一下,具体代码如下: <?php class Pagi...
yipeiwu_com6年前
本文实例讲述了PHP封装的多文件上传类实例与用法。分享给大家供大家参考,具体如下: <?php /**//* * @(#)UploadFile.php * * 可...
yipeiwu_com6年前
thinkphp文件夹下config 里面有个convention.php文件 里面有三个配置 'DEFAULT_MODULE' => 'Home', // 默认模块 'DEF...
yipeiwu_com6年前
字符串函数 strlen:获取字符串长度,字节长度 substr:字符串截取,获取字符串(按照字节进行截取) strchr:与substr相似,从指定位置截取一直到最后 strrchr(...
yipeiwu_com6年前
本文实例讲述了PHP正则匹配反斜杠'\'和美元'$'的方法。分享给大家供大家参考,具体如下: 1. test.php: <?php $content = '111111...
yipeiwu_com6年前
简单版: <?php header("Content-Type: text/html;charset=utf-8"); $str = '<div class="...
yipeiwu_com6年前
实例如下: <?php /** * @name thumb 缩略图函数 * @param sting $img_name 图片路径 * @param...
yipeiwu_com6年前
实例如下: function unescape($str) { $str = rawurldecode($str); preg_match_all("/(?:%u.{...
yipeiwu_com6年前
实例如下: //将内容进行UNICODE编码 function unicode_encode($name) { $name = iconv('UTF-8', 'UCS-2', $...