"; print '結果'; print '通番'; print '名前'; print '技・付加'; print 'スタイル'; print '装備1'; print '強さ'; print '装備2'; print '強さ'; print '装備3'; print '強さ'; print '装備4'; print '強さ'; // 番号と回と $resultis = '01'; $no = 1; $nombre = $no; $nom = 10; //noが始め nomが終わり while($no < $nom+1){ $get = 'result'.$resultis.'/k/now/r'.$no.'b1.html'; //getにあたるfileがあれば以下を実行 if(file_exists($get)){ $src = file_get_contents($get); //検索0 名前を引っこ抜く $pattern1 = '/(.*?)


/s'; preg_match_all($pattern1,$src,$outa0); $patte2 = '/(.*?)(.*?)/s'; preg_match_all($pat0,$out0[0][0],$ot0); //通し番号の順番に愛称を格納する $pl = 0; $plmax = count($outa1[1]); while($pl < $plmax){ $aisyo = $outa1[1][$pl]; $name[$pl] = $aisyo; //スタイルと装備部分の切り出し $patt1 = '/I CLASS=F5>.*?'.$aisyo.'.*?【(.*?)】.*?

/s'; preg_match_all($pa0,$ot0[0][$sta],$otto0); if (false == strpos($otto0[0][0],'CLASS=SK')) { $pa1 = '/'.$aisyo.'の(.*?)!/s'; preg_match_all($pa1,$otto0[0][0],$otto1); }else{ $pa1 = '/>>>(.*?)'; print '
'; print ''; print ''; print ''; print ''; $soubi = 0; while($soubi < $sobimaxim[$pll]){ print ''; print ''; $soubi++; } print ''; $uses++; } $pll++; } } $no++; } print '
'.$no.''.$pll.''.$name[$pll].''.$useskill[$pll][$uses].''.$style[$pll].''.$sobisyu[$pll][$soubi].''.$sobituyo[$pll][$soubi].'
'; ?>