Php string rotation array

The value returned by

var_dump is as follows
string (251) "{" result ":" misty clouds worry about the day forever. The auspicious brain dissipates the golden beast. During the festive season, the jade pillow gauze kitchen is cool in the middle of the night. After drinking wine at twilight under the chrysanthemum hedge. My sleeves are perfumed by the fragrance of the plants. "status": "SUCCEED", "request_id": "90610e3689624420ad024102bfcaac01"} "
want to extract the result, how to operate

Php
Mar.03,2021

the data you give is a json string. If you want to convert the array, please use json_decode (string, true);
) so that you can take it according to the array, otherwise you will get the first object.
example:

$json_str = '{"result":"","status":"SUCCEED","request_id":"90610e3689624420ad024102bfcaac01"}';
$arr = json_decode($json_str,true);
print_r($arr['result']);

for more information, please see the official website json_decode

.

isn't this a json?
just json_decode directly


$json =  '{"result":"","status":"SUCCEED","request_id":"90610e3689624420ad024102bfcaac01"}';
$value = json_decode($json);
print_r($value->result);

$jsonString ='{"result": "Mist and thick clouds worry about the day forever. The auspicious brain dissipates the golden beast. During the festive season, the jade pillow gauze kitchen is cool in the middle of the night. After drinking wine at twilight under the chrysanthemum hedge. My sleeves are perfumed by the fragrance of the plants. The number of people in the west wind is less than that of . "," status ":" SUCCEED "," request_id ":" 90610e3689624420ad024102bfcaac01 "}';
$resultArray = json_decode ($jsonString,true);
print_r ($resultArray ['result']);


json_decode($str, true)

change to an associative array and take it out

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-1b33e3f-2bec9.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-1b33e3f-2bec9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?