タグ

PHPに関するsyake07のブックマーク (23)

  • 20. PHPからJSON作成を扱う

    近頃、データ形式のやりとりに「JSON」を使う場面が多くなってきています。 PHPのデータを簡単にJSON形式に変換するライブラリには、「PEAR::Services_JSON」「Zend/Json.php」「php-jsonモジュール」等があります。それらの簡単な使用方法を紹介します。 ●PEAR::Services_JSONの場合 現在このパッケージはPEARに正式登録されていません。 その為、pearコマンドではインストールすることができませんので、 以下のページよりダウンロードを行い、設置してください。 ダウンロード(http://mike.teczno.com/JSON.tar.gz) あとは、非常に簡単なコードでJSON形式のデータに変換することができます。 <?php require_once "JSON.php"; $arr = array( array( "name" =

    20. PHPからJSON作成を扱う
    syake07
    syake07 2008/06/03
    php-json
  • PEAR Package List

    Several other PHP projects provide packages of their software that are installable using the PEAR infrastructure. A list of these projects can be found in the channels section.

    syake07
    syake07 2008/06/02
  • PHP: PHP マニュアル - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: PHP マニュアル - Manual
    syake07
    syake07 2008/03/04
    php.net