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>"); }
原创文章转载请注明:http://www.phprm.com
文章网址:http://www.phprm.com/code/935527ad51ed0beba2ef92c435ba239c.html
随意转载^^但请附上教程地址。