次の JSON があります。
"list": {
"list_id": "2kA",
"title": "Social Media",
"description": "Trending",
"image": [
"http://cdn.socialmediaexaminer.com/wp-content/uploads/2012/11/br-campaign-report.png?9d7bd4",
"http://cdn.socialmediaexaminer.com/wp-content/uploads/2012/11/br-campaign-report.png?9d7bd"
],
"views": 65
}
イメージ配列のシリアル化されたバージョンをデータベースに保存するにはどうすればよいですか? 次のいずれかを実行すると、エラーが返されます。
$images = $item->list->image;
$images = $item->list->image->[0];
$images = $item->list->['image'];
みんなありがとう!