$element){ $array2 = explode("\t",$element); foreach($aLabel as $key2 => $element2){ if(isset($array2[$key2])){ $gameData[$array2[0]][trim($element2)] = trim($array2[$key2]); } } //画像データ $gameData[$array2[0]]["rating"] = explode(",", $gameData[$array2[0]]["rating"]); //販売年 if($gameData[$array2[0]]["sellUS"]==TRUE && $gameData[$array2[0]]["sellUS"]==TRUE){ $gameData[$array2[0]]["year"] = min(date("Y",strtotime($gameData[$array2[0]]["sellUS"])),date("Y",strtotime($gameData[$array2[0]]["sellEU"]))); }elseif($gameData[$array2[0]]["sellUS"]==TRUE){ $gameData[$array2[0]]["year"] = date("Y",strtotime($gameData[$array2[0]]["sellUS"])); }elseif($gameData[$array2[0]]["sellEU"]==TRUE){ $gameData[$array2[0]]["year"] = date("Y",strtotime($gameData[$array2[0]]["sellEU"])); } } //最新3つのゲーム情報(sellUSとsellEUを元に) $latest[0] = array("game"=>0,"sell"=>0); $latest[1] = array("game"=>0,"sell"=>0); $latest[2] = array("game"=>0,"sell"=>0); foreach($gameData as $key => $element){ //USとEUでどちらが後に販売されたかを確認 $sell = max(strtotime($element["sellUS"]),strtotime($element["sellEU"])); if($latest[0]["game"]==0&&$latest[0]["sell"]==0){ //一つ目に情報が入っていなければ一つ目に入れる $latest[0]["game"] = $key; $latest[0]["sell"] = $sell; }else if($sell > $latest[0]["sell"]){ //一つ目の情報とどちらが新しいかをチェック==>新しければ情報を入れて、ずらす $latest[2]["game"] = $latest[1]["game"]; $latest[2]["sell"] = $latest[1]["sell"]; $latest[1]["game"] = $latest[0]["game"]; $latest[1]["sell"] = $latest[0]["sell"]; $latest[0]["game"] = $key; $latest[0]["sell"] = $sell; }else if($latest[1]["game"]==0&&$latest[1]["sell"]==0){ //二つ目に情報が入っていなければ二つ目に入れる $latest[1]["game"] = $key; $latest[1]["sell"] = $sell; }else if($sell > $latest[1]["sell"]){ //二つ目の情報とどちらが新しいかをチェック==>新しければ情報を入れて、ずらす $latest[2]["game"] = $latest[1]["game"]; $latest[2]["sell"] = $latest[1]["sell"]; $latest[1]["game"] = $key; $latest[1]["sell"] = $sell; }else if($latest[2]["game"]==0&&$latest[1]["sell"]==2){ //三つ目に情報が入っていなければ三つ目に入れる $latest[2]["game"] = $key; $latest[2]["sell"] = $sell; }else if($sell > $latest[1]["sell"]){ //三つ目の情報とどちらが新しいかをチェック==>新しければ情報を入れる $latest[2]["game"] = $key; $latest[2]["sell"] = $sell; } } ?> Top Page - GameBridge

GameBridge/Go Series

NEWS

02/22/2013

The ebook Petit Computer Official Strategy Technic for PC is now on sale. It can be read by smartphone PC.
Petit Computer Official Strategy Technic(Android)

12/17/2012

The ebook Petit Computer Official Strategy Technic is now on sale. It can be read by smartphone Android.
Petit Computer Official Strategy Technic(Android)

10/30/2012

All pages are cleaned up.
Petit Computer's information is renewed.

07/19/2012

Petit Computer is released in USA. This is not the Game Software!! You can make your original game with this software by using BASIC!!
Web site is here.

07/02/2012

This Web Site is released. About GAMEBRIDGE and Go Series.