How to print data through curl?

my mysql database has two pieces of data

when I print_r, it looks like this:

[{"errno":"1","errstr":"2","errfile":"3","errline":"4"},{"errno":"12","errstr":"2123 ","errfile":"3123","errline":"4124"}]1

I want him to cycle through a list of
, but I just can"t print it. Where is the code code for
?
foreach is completely invalid

Mar.04,2021

your curl API returns json data, right?
you have to convert the json data into an array or object before you can cycle.

json_decode decodes the string in json format.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e79b1a-77e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e79b1a-77e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?