Read curl php results
P粉718165540
P粉718165540 2024-04-03 14:14:03
0
1
418

I'm doing a curl and getting the JSON result:

$data = json_decode($result, true);
var_dump($data);
$data = $data["data"];
echo $data;

But the echo of $data is "{". If I do a var_dump before assigning the variable again, I see:

string(727796) "{"data":["base64_image1", "base64_image2",... ]}"

Why can't I access the data list? I just want to do a foreach on this list, but I can't.

P粉718165540
P粉718165540

reply all(1)
P粉186904731

The output is json, so try json_decode() again

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template