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用法与区别