for example: there is an array queried from the database, normally using echo josn_encode (the output json string after $a); should be [{"id":"1","name":"aaa","age":"23"},{"id":"...
foreach ($region_get_all->{ regions } as $value) { echo $value->{ region-id }[0]; } I use curl to match the data $region_get_all- > { regions } is already json_decode I want to get the first data of those numbers (region-...
I am using curl to ask when the error is 500, for example, how can I catch the information he spits out here with me? because if there are no errors, the counterpart can send me a reply to json and receive it, it can show , but it will send back 5...
I first send json to the counterpart. If the counterpart checks OK, it will return json,. I can use json_decode ($result); ) to catch , but now that my counterpart json, sends back to HTML, how can I print this value?! ...