php利用explode进行判断字符串是否包含字符串:
/**
*
* @param
* @arrange (三零脚本) www.q3060.com
**/
function checkstr($str){
$needle ='a';//判断是否包含a这个字符
$tmparray = explode($needle,$str);
if(count($tmparray)>1){
return true;//如果包含有
} else{
return false;//没有包含有
}
}