教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 explode的用法

explode的用法

发布时间:2016-10-29   编辑:jiaochengji.com
教程集为您提供explode的用法等资源,欢迎您收藏本站,我们将为您提供最新的explode的用法资源

php explode 函数的用法,这是我自家用的explode的用法

if( !empty($ct) ){

   if(strpos($ct,"|")===false){

   mysql_query($sql) or die(mysql_error());

   exit("<script>alert('insert success!');location='add_type.php';</script>");

  }else{

   $ex=explode("|",$ct);

   for($i=0;$i<sizeof($ex);$i ){   

    $r=mysql_query("select * from ffff where zddd='".$ex[$i]."'") ;

    if(!mysql_fetch_array($r)){

     mysql_query("insert into rwerew(f_idfff,z_time) value($zm,'".$ex[$i]."','".date("Y-m-d")."')") or die(mysql_error());

    }

   }

   exit("<script>alert('insert success!');location='add_type.php';</script>");

  }

 }else{

  exit("<script>alert('info Error!');history.back();</script>");

 }

原创文章转载请注明:www.jiaochengji.com

您可能感兴趣的文章:
php中 explode查找某个字符是否存在的方法
php explode implode 用法
php 获取访问者浏览器的代码
php strrpos explode is_array 函数使用教程
php字符串分割函数explode实例
PHP explode()函数用法详解
explode的用法
删除字符串中最先出现某个字的小例子
php怎么将字符串炸开
php explode 与 implode用法与区别

上一篇:php文件处理类 下一篇:php文章采集
[关闭]
~ ~