21,886
社区成员
发帖
与我相关
我的任务
分享
function bijiao($biaoti,$key){
$a=1;
$b=1;
foreach($key as $key_s){
$a++;
$key_list=$key_s;
if($key_list!=""){
echo "[$biaoti]==[$key_list] == <br>\r\n";
$ok=stristr($biaoti,$key_list);
if($ok){
$b++;
//echo "$b <br>\r\n";
}
}
}
return $b;
}
function bijiao($biaoti,$key){
foreach($key as $k => $val){
//print($k."=>".$val.";");
$key_list=$val;
//echo '$key_list是',gettype($key_list),'型','<br />';
if($biaoti!="" && !empty($key)){
echo "[$biaoti]==[$key_list] == ";
$ok=stristr($biaoti,$key_list);
if($ok){
return $k+1;
}
}
}
return 0;
}
for($line=2; $line<=50; $line++) {
$rand_ones = trim(charaget(get_file_line($files, $line)));
$E_rand_ones=explode("\t",$rand_ones);
//var_dump($E_rand_ones[0]);
//echo "$E_rand_ones[0]==$key == <br>\r\n";
foreach($keyword as $val){
if (strstr( $E_rand_ones[0] , $val ) !== false ){
echo "$line <br>\r\n";
}
}
}