Skip to content

Instantly share code, notes, and snippets.

@Pittan
Last active August 29, 2015 14:17
Show Gist options
  • Save Pittan/284431bebffcb595e7da to your computer and use it in GitHub Desktop.
Save Pittan/284431bebffcb595e7da to your computer and use it in GitHub Desktop.
<?php
/*
挫折しました、ご確認ください
*/
$stations = array(
'青山一丁目' => array(
'表参道' => 1,
'外苑前' => 1,
'永田町' => 1,
'赤坂見附' => 1
),
'赤坂' => array(
'乃木坂' => 1,
'国会議事堂前' => 1
),
'赤坂見附' => array(
'青山一丁目' => 1,
'永田町' => 1,
'溜池山王' => 1,
),
'赤羽岩淵' => array(
'' => 1,
'' => 1,
),
'秋葉原' => array(
'' => 1,
'' => 1,
),
'浅草' => array(
'' => 1,
'' => 1,
),
'麻布十番' => array(
'' => 1,
'' => 1,
),
'綾瀬' => array(
'' => 1,
'' => 1,
),
'淡路町' => array(
'' => 1,
'' => 1,
),
'飯田橋' => array(
'' => 1,
'' => 1,
),
'池袋' => array(
'' => 1,
'' => 1,
),
'市ヶ谷' => array(
'' => 1,
'' => 1,
),
'稲荷町' => array(
'' => 1,
'' => 1,
),
'入谷' => array(
'' => 1,
'' => 1,
),
'上野' => array(
'' => 1,
'' => 1,
),
'上野広小路' => array(
'' => 1,
'' => 1,
),
'浦安' => array(
'' => 1,
'' => 1,
),
'江戸川橋' => array(
'' => 1,
'' => 1,
),
'恵比寿' => array(
'' => 1,
'' => 1,
),
'王子' => array(
'' => 1,
'' => 1,
),
'王子神谷' => array(
'' => 1,
'' => 1,
),
'大手町' => array(
'' => 1,
'' => 1,
),
'荻窪' => array(
'' => 1,
'' => 1,
),
'押上' => array(
'' => 1,
'' => 1,
),
'落合' => array(
'' => 1,
'' => 1,
),
'御茶ノ水' => array(
'' => 1,
'' => 1,
),
'表参道' => array(
'' => 1,
'' => 1,
),
'外苑前' => array(
'' => 1,
'' => 1,
),
'神楽坂' => array(
'' => 1,
'' => 1,
),
'葛西' => array(
'' => 1,
'' => 1,
),
'霞ヶ関' => array(
'' => 1,
'' => 1,
),
'要町' => array(
'' => 1,
'' => 1,
),
'神谷町' => array(
'' => 1,
'' => 1,
),
'茅場町' => array(
'' => 1,
'' => 1,
),
'神田' => array(
'' => 1,
'' => 1,
),
'北綾瀬' => array(
'' => 1,
'' => 1,
),
'北参道' => array(
'' => 1,
'' => 1,
),
'北千住' => array(
'' => 1,
'' => 1,
),
'木場' => array(
'' => 1,
'' => 1,
),
'行徳' => array(
'' => 1,
'' => 1,
),
'京橋' => array(
'' => 1,
'' => 1,
),
'清澄白河' => array(
'' => 1,
'' => 1,
),
'銀座' => array(
'' => 1,
'' => 1,
),
'銀座一丁目' => array(
'' => 1,
'' => 1,
),
'錦糸町' => array(
'' => 1,
'' => 1,
),
'九段下' => array(
'' => 1,
'' => 1,
),
'麹町' => array(
'' => 1,
'' => 1,
),
'後楽園' => array(
'' => 1,
'' => 1,
),
'護国寺' => array(
'' => 1,
'' => 1,
),
'小竹向原' => array(
'' => 1,
'' => 1,
),
'国会議事堂前' => array(
'' => 1,
'' => 1,
),
'小伝馬町' => array(
'' => 1,
'' => 1,
),
'駒込' => array(
'' => 1,
'' => 1,
),
'桜田門' => array(
'' => 1,
'' => 1,
),
'渋谷' => array(
'' => 1,
'' => 1,
),
'志茂' => array(
'' => 1,
'' => 1,
),
'白金台' => array(
'' => 1,
'' => 1,
),
'白金高輪' => array(
'' => 1,
'' => 1,
),
'新大塚' => array(
'' => 1,
'' => 1,
),
'新御茶ノ水' => array(
'' => 1,
'' => 1,
),
'新木場' => array(
'' => 1,
'' => 1,
),
'新高円寺' => array(
'' => 1,
'' => 1,
),
'新宿' => array(
'' => 1,
'' => 1,
),
'新宿御苑前' => array(
'' => 1,
'' => 1,
),
'新宿三丁目' => array(
'' => 1,
'' => 1,
),
'新富町' => array(
'' => 1,
'' => 1,
),
'新中野' => array(
'' => 1,
'' => 1,
),
'新橋' => array(
'' => 1,
'' => 1,
),
'神保町' => array(
'' => 1,
'' => 1,
),
'水天宮前' => array(
'' => 1,
'' => 1,
),
'末広町' => array(
'' => 1,
'' => 1,
),
'住吉' => array(
'' => 1,
'' => 1,
),
'千川' => array(
'' => 1,
'' => 1,
),
'千駄木' => array(
'' => 1,
'' => 1,
),
'雑司が谷' => array(
'' => 1,
'' => 1,
),
'高田馬場' => array(
'' => 1,
'' => 1,
),
'竹橋' => array(
'' => 1,
'' => 1,
),
'辰巳' => array(
'' => 1,
'' => 1,
),
'溜池山王' => array(
'' => 1,
'' => 1,
),
'田原町' => array(
'' => 1,
'' => 1,
),
'地下鉄成増' => array(
'' => 1,
'' => 1,
),
'地下鉄赤塚' => array(
'' => 1,
'' => 1,
),
'築地' => array(
'' => 1,
'' => 1,
),
'月島' => array(
'' => 1,
'' => 1,
),
'東京' => array(
'' => 1,
'' => 1,
),
'東大前' => array(
'' => 1,
'' => 1,
),
'東陽町' => array(
'' => 1,
'' => 1,
),
'豊洲' => array(
'' => 1,
'' => 1,
),
'虎ノ門' => array(
'' => 1,
'' => 1,
),
'仲御徒町' => array(
'' => 1,
'' => 1,
),
'永田町' => array(
'' => 1,
'' => 1,
),
'中野' => array(
'' => 1,
'' => 1,
),
'中野坂上' => array(
'' => 1,
'' => 1,
),
'中野新橋' => array(
'' => 1,
'' => 1,
),
'中野富士見町' => array(
'' => 1,
'' => 1,
),
'中目黒' => array(
'' => 1,
'' => 1,
),
'西葛西' => array(
'' => 1,
'' => 1,
),
'西ヶ原' => array(
'' => 1,
'' => 1,
),
'西新宿' => array(
'' => 1,
'' => 1,
),
'西日暮里' => array(
'' => 1,
'' => 1,
),
'西船橋' => array(
'' => 1,
'' => 1,
),
'西早稲田' => array(
'' => 1,
'' => 1,
),
'二重橋前' => array(
'' => 1,
'' => 1,
),
'日本橋' => array(
'' => 1,
'' => 1,
),
'人形町' => array(
'' => 1,
'' => 1,
),
'根津' => array(
'' => 1,
'' => 1,
),
'乃木坂' => array(
'' => 1,
'' => 1,
),
'八丁堀' => array(
'' => 1,
'' => 1,
),
'原木中山' => array(
'' => 1,
'' => 1,
),
'半蔵門' => array(
'' => 1,
'' => 1,
),
'東池袋' => array(
'' => 1,
'' => 1,
),
'東銀座' => array(
'' => 1,
'' => 1,
),
'東高円寺' => array(
'' => 1,
'' => 1,
),
'東新宿' => array(
'' => 1,
'' => 1,
),
'氷川台' => array(
'' => 1,
'' => 1,
),
'日比谷' => array(
'' => 1,
'' => 1,
),
'広尾' => array(
'' => 1,
'' => 1,
),
'平和台' => array(
'' => 1,
'' => 1,
),
'方南町' => array(
'' => 1,
'' => 1,
),
'本郷三丁目' => array(
'' => 1,
'' => 1,
),
'本駒込' => array(
'' => 1,
'' => 1,
),
'町屋' => array(
'' => 1,
'' => 1,
),
'三越前' => array(
'' => 1,
'' => 1,
),
'南阿佐ヶ谷' => array(
'' => 1,
'' => 1,
),
'南行徳' => array(
'' => 1,
'' => 1,
),
'南砂町' => array(
'' => 1,
'' => 1,
),
'南千住' => array(
'' => 1,
'' => 1,
),
'三ノ輪' => array(
'' => 1,
'' => 1,
),
'茗荷谷' => array(
'' => 1,
'' => 1,
),
'妙典' => array(
'' => 1,
'' => 1,
),
'明治神宮前' => array(
'' => 1,
'' => 1,
),
'目黒' => array(
'' => 1,
'' => 1,
),
'門前仲町' => array(
'' => 1,
'' => 1,
),
'有楽町' => array(
'' => 1,
'' => 1,
),
'湯島' => array(
'' => 1,
'' => 1,
),
'四ツ谷' => array(
'' => 1,
'' => 1,
),
'四谷三丁目' => array(
'' => 1,
'' => 1,
),
'代々木上原' => array(
'' => 1,
'' => 1,
),
'代々木公園' => array(
'' => 1,
'' => 1,
),
'六本木' => array(
'' => 1,
'' => 1,
),
'六本木一丁目' => array(
'' => 1,
'' => 1,
),
'和光市' => array(
'' => 1,
'' => 1,
),
'早稲田' => array(
'' => 1,
'' => 1,
),
);
$member = array(
'白石麻衣' => array('大手町'),
'中元日芽香' => array('九段下','竹橋','半蔵門','神保町'),
'寺田蘭世' => array('行徳','妙典','原木中山','西船橋'),
'衛藤美彩' => array('日本橋'),
'中田花奈' => array('日比谷','二重橋前','桜田門','有楽町','銀座一丁目'),
'川後陽菜' => array('東銀座','八丁堀','築地'),
'秋元真夏' => array('東京','本郷三丁目','御茶ノ水','淡路町'),
'相楽伊織' => array('東陽町','門前仲町','南砂町'),
'鈴木絢音' => array('浦安','西葛西','葛西'),
'星野みなみ' => array('溜池山王','国会議事堂前','白金台','白金高輪','麻布十番','六本木一丁目','目黒'),
'斉藤優里' => array('永田町','赤坂見附','青山一丁目'),
'桜井玲香' => array('表参道','外苑前','渋谷'),
'堀未央奈' => array('新橋','虎ノ門'),
'伊藤かりん' => array('四ツ谷','四谷三丁目','新宿御苑前'),
'松井玲奈' => array('銀座'),
'若月佑美' => array('六本木','神谷町','広尾','恵比寿'),
'川村真洋' => array('茅場町','人形町'),
'全員' => array('乃木坂'),
'西野七瀬' => array('池袋','雑司が谷','西早稲田'),
'高山一実' => array('小竹向原','地下鉄成増','地下鉄赤塚','平和台','氷川台','千川','要町'),
'能條愛未' => array('中野坂上','西新宿','中野富士見町','方南町'),
'斎藤ちはる' => array('荻窪','新中野','東高円寺','南阿佐ヶ谷'),
'和田まあや' => array('霞ヶ関'),
'深川麻衣' => array('新宿','新宿三丁目','東新宿','北参道'),
'新内眞衣' => array('飯田橋','市ヶ谷','麹町'),
'渡辺みり愛' => array('東池袋','護国寺','江戸川橋'),
'生田絵梨花' => array('明治神宮前','赤坂','代々木公園'),
'伊藤万理華' => array('高田馬場','落合','早稲田','神楽坂'),
'佐々木琴子' => array('南千住','三ノ輪','入谷'),
'橋本奈々未' => array('上野','浅草','田原町','稲荷町'),
'松村沙友理' => array('北千住','北綾瀬','綾瀬'),
'北野日奈子' => array('三越前','神田','水天宮前'),
'齋藤飛鳥' => array('新御茶ノ水','町屋','西日暮里','千駄木','根津','湯島'),
'永島聖羅' => array('住吉','清澄白河','錦糸町','押上'),
'生駒里奈' => array('秋葉原','上野広小路','仲御徒町','小伝馬町','末広町'),
'井上小百合' => array('新木場','新富町','月島','豊洲','辰巳'),
'樋口日奈' => array('後楽園','新大塚'),
'伊藤純奈' => array('王子','東大前','本駒込','駒込'),
'山崎怜奈' => array('西ヶ原','王子神谷','志茂','赤羽岩淵'),
'能條愛未(限)' => array('中野新橋'),
'衛藤美彩(限)' => array('京橋'),
'斎藤ちはる(限)' => array('新高円寺'),
'相楽伊織(限)' => array('木場'),
'寺田蘭世(限)' => array('南行徳'),
'樋口日奈(限)' => array('茗荷谷')
);
//echo ($stations["青山一丁目"]);
//echo count($stations)."\n";
//echo count($member, COUNT_RECURSIVE)-count($member);
//foreach( $member as $key1 => $val1 ){
//echo "--".$key1. "--\n";
//foreach( $val1 as $key2 => $val2 ){
//echo $key2. ":" .$val2."\n";
//echo $key2." : ".key($stations[$val2])."\n";
//}
//}
echo json_encode($member,JSON_UNESCAPED_UNICODE);
?>
@Pittan
Copy link
Author

Pittan commented Mar 15, 2015

JSONでメンバーの駅を吐き出してくれるので何かに使えるかも?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment