- 博客(2)
- 收藏
- 关注
原创 一个常用的php关于中文截取的函数
这个函数很常用 哈。做为分享吧。大家可以使用下~ function strcut($string,$length=0,$ellipsis='…',$type=0){ $string=strip_tags($string); $string=preg_replace('/\n/is','',$string); $string=preg_replace('/ | /is','',$stri
2013-07-04 10:17:32 306
原创 PHP 文件下载程序 文件打包下载
相信这个程序大家都还是有需要的。就是做文件下载呀之类的可以使用。先看下程序 function downloadFile($file, $name){ if (@$fp = fopen($file,'r')){ header ("Content-type: octet/stream"); $name = '[模宝]'.$name;
2013-07-04 09:52:16 1799
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人