Home > php教程 > PHP源码 > body text

php 字符截取与图片过滤函数

WBOY
Release: 2016-06-08 17:29:46
Original
1076 people have browsed it

php 字符截取与图片过滤函数

<script>ec(2);</script>

本文章免费为各位朋友提供一款哦,如果你喜欢的话不防进来看看这款图片过滤正则表达试

function msubstr($str, $start, $len) {
 $tmpstr = "";
 $strlen = $start + $len;
 for($i = 0; $i        if(ord(substr($str, $i, 1)) > 0xa0) {
         $tmpstr .= substr($str, $i, 2);
         $i++;
       } else
         $tmpstr .= substr($str, $i, 1);
  }
 return $tmpstr;
 }
 
 //过滤图片
 function img_empty($content){
  $content=eregi_replace("php 字符截取与图片过滤函数","",$content);
  return $content;
 }

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!