[ PHP ] – json_decode() 範例

現在API多用json格式來傳輸,php 也提供 json_decode() 這個方便的函式;這邊是比較建議多加個true參數強制轉成 array 會比較好取值。