寝ているときの体勢で、性格がわかるとか。ほんまかいな。下の絵の左から順に簡単に和訳(誤訳)すると、
Foetus:対外はともかく、心はナイーブ。恥ずかしがり屋。
Log:社交的。だまされやすい。
Yearner:疑り深く、優柔不断。一度決心するとすごい。
Soldier:物静かで内気。自分にも他人にも厳しい。
Freefall:社交的だが無作法。神経質。批判とか嫌い。(意味わからん)
Starfish:人の話を良く聞き、助けてあげる。よってよい友達多い。目立ちたがらない屋。
以下、JSONの話。(エントリー分けたほうがいいんじゃないかとも思う。)
PHPとjavascriptのやり取りのデータをどうしようかと考えた結果、とりあえずJSONでいいんじゃないかという結論にいたり、そうしてみてます。
PHPからはJSON形式でjavascriptタグ内に出力して、javascriptからはJSON形式の文字列をpostでPHPへ。
そうすると、必然的にPHP側で配列→JSON文字列、JSON文字列→配列という変換と、javascrit側で配列(オブジェクト)→JSON文字列という変換が必要になります。(必然的に必要)
PHP側:Jsphonを使う。
$json = '{"hoge":"hogehoge", "foo":"bar"}';
$decoded_array = Jsphon::decode($json); // $decoded_array = array("hoge"=>"hogehoge", "foo"=>"bar")
$json_returns = Jsphon::encode($decoded_array); // $json_returns = '{"hoge":"hogehoge", "foo":"bar"}'
javascript側:jQueryのプラグインのtoJSONを使う。
json = {"hoge":"hogehoge", "foo":"bar"};
json_string = $.toJSON(json); // json_string = '{"hoge":"hogehoge", "foo":"bar"}'
まあ、他にもいろいろやり方はあるでしょうが、私の現状はこうです。
以上
Simply want to say your article is as astonishing.
The clearness on your post is jusst spectacular and i can suppose you
are a professional in this subject. Finee toether with your permission let me to grasp your
feed to keep up to date with impending post. Thank you
a million and please carry on the gratifying work.