0
0

More than 3 years have passed since last update.

jsonのPHP、JSでのエンコードとか

Posted at

php

fetchall(PDO::FETCH_ASSOC) — 結果セットに 返された際のカラム名で添字を付けた配列を返す。
json_decode — JSON形式の文字列をオブジェクトもしくは連想配列に変換する
json_encode — 値をJSON形式にして返す

JSON

JSON.parse — JSON形式で書かれた文字列をJavaScriptのJSONオブジェクトに変換する
JSON.stringfy — JSONオブジェクトを文字列に変換する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0