タグ

2012年1月18日のブックマーク (1件)

  • Vitalify Creative Knowledge

    PHPでJSON形式のデータを出力する方法はいくつかありますが、 「 PEAR::Services_JSON 」を使用した簡単な方法を紹介します。 ライブラリのダウンロードはこちら // 出力用データ(PHP配列) $arr = array( "title" => "office photo", "data" => array( array( "id" => "1", "photo" => "images/photo/index_photo001.jpg", "thumb" => "images/photo/th/index_photo01.jpg", "photographer" => "バイタリ 太郎", "description" => "株式会社バイタリフィ<br />ダミーダミー", "word01" => "大会議室です。ダミーダミー。<br />この文章はダミーですダミーです