1 && $datas[0] != "ID" && $datas[3] == "1"){
$file_list[$line_count]["id"] = $datas[0];
$file_list[$line_count]["releasedate"] = date("Y/m/d", strtotime($datas[1]));
$file_list[$line_count]["title"] = trim($datas[2],"\x22 \x27");
if ($datas[3] == "1") {
$file_list[$line_count]["status"] = "公開中";
}
else {
$file_list[$line_count]["status"] = "非公開";
}
$file_list[$line_count]["updatedate"] = date("Y/m/d", strtotime($datas[4]));
if ($datas[5] == "1") {
$file_list[$line_count]["new"] = "new";
}
else {
$file_list[$line_count]["new"] = "";
}
$file_list[$line_count]["primal"] = $datas[6];
$line_count++;
}
}
fclose($fp);
foreach ($file_list as $key => $value) {
$sort1[$key] = $value['primal'];
$sort2[$key] = $value['releasedate'];
}
array_multisort($sort1, SORT_DESC, $sort2, SORT_DESC, $file_list);
for($i = 0; $i < 3; ++$i) {
echo("- " . $file_list[$i]["releasedate"] . "
- " . $file_list[$i]["title"] . $file_list[$i]["new"] . "
");
}
?>