「PHP入門」連想配列をjsonに変換するサンプル
phpコード:
$itperson = array(
“address" => “東京" ,
“school" => “abc大学" ,
“skill" => array(
“java" => “得意" ,
“php" => “初心者" ,
“jquery" => “普通" ,
),
);
$json = json_encode( $itperson ) ;
Coding Changes the World
phpコード:
$itperson = array(
“address" => “東京" ,
“school" => “abc大学" ,
“skill" => array(
“java" => “得意" ,
“php" => “初心者" ,
“jquery" => “普通" ,
),
);
$json = json_encode( $itperson ) ;