Skip to content
Advertisement

Get data from a sub-array with json and php

I would like to obtain the value of “single_img” that is in a subarray but I can’t find the way.

JavaScript

I appreciate your answers!

Advertisement

Answer

you can decode the string as an associative array and access your key:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement