Chinaunix首页 | 论坛 | 博客
  • 博客访问: 190681
  • 博文数量: 99
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1045
  • 用 户 组: 普通用户
  • 注册时间: 2014-07-15 14:24
文章分类
文章存档

2015年(9)

2014年(90)

我的朋友

发布时间:2014-12-02 14:24:17

array_diff( $arr , $arr2[……] )  返回一个数组,该数组包括了所有在$arr1 但是不在任何其他参数数组中的值,键名不变array_diff_uassoc( $arr ,$arr2 ,[……] , 'cmp_function') 用回调函数做索引比较数组中的差集array_diff_assoc( $arr , $arr2[……] ) 返回一个数组,$arr 与其他数组的差集 同时比较键名 &nbs.........【阅读全文】

阅读(994) | 评论(0) | 转发(0)

发布时间:2014-11-28 15:01:10

php自带函数strip_tagsecho strip_tags("hello <b>world! </b>");自定义函数:function filterhtml($str) {        $str=eregi_replace("</*[^<>]*>", , $str);        $str=str_replace(" ", , $str);        $str=str_replace("n", , $str);  &.........【阅读全文】

阅读(874) | 评论(0) | 转发(0)

发布时间:2014-11-26 15:06:51

php导出数据到excel时,身份证等比较长的数字会变成科学计数法表示,转换成字符还是不行,只需在身份证字段前加个英文单引号,如 “‘”.$value['cid'] ,这样就能显示完整了......【阅读全文】

阅读(1118) | 评论(0) | 转发(0)

发布时间:2014-11-25 17:32:11

ie6下css实现max/min-width/height_width:expression(this.width>300?"300px":ture); max-width:300px;_height:expression(this.height>300?"300px":ture); max-height:300px;......【阅读全文】

阅读(633) | 评论(0) | 转发(0)

发布时间:2014-11-21 14:08:22

//编码,编码后为小写function escape($str){preg_match_all("/[\x80-\xff].|[\x01-\x7f]+/",$str,$newstr);$ar = $newstr[0];foreach($ar as $k=>$v){   if(ord($ar[$k])>=127){    $tmpString=bin2hex(iconv("GBK","ucs-2//IGNORE",$v));    if (!eregi("WIN",PHP_OS)){  &nbs.........【阅读全文】

阅读(877) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册