https://syncer.jp/how-to-use-json
によると、jsonのデコード オブジェクト型らしい
よくわからん
http://qiita.com/IganinTea/items/de6201fe860a65e192a1
によると
「配列であるか」が判定できるようだ。これ使えるかもね。
http://www.atmarkit.co.jp/ait/articles/1404/16/news044_2.html
なんとなく
http://php-beginner.com/reference/typearray/func_array.html
ふむふむ
http://qiita.com/mmusasabi/items/4b7d2f27bd4604bfc17f
えーっと $memberって
<?php
$json=file_get_contents("bookmarks.json");
$obj = json_decode($json,false,512,JSON_BIGINT_AS_STRING);
echo "hairetu su".count($obj);
echo "\n";
foreach($obj as $key => $value){
if (is_array($value)){
echo "hairetu desu\n";
echo $key."\n";
echo "hairetu su".count($key);
echo "\n";
} else {
echo "not haireru\n";
echo $key.";".$value;
echo "\n";
}
echo "-----\n";
}
echo "\n"
?>
再帰しないとだめかな
http://www.shigemk2.com/entry/20120509/1336555886
これよさそう