Json_decode and json_encode

$res = json_decode (json_encode ($res), true);

in the above code, encode is followed by decode, which is why

Php
Apr.24,2022

estimate that $res is an object before, convert the $res object to json data, then decode the json data and set the second parameter of json_decode to true to convert $res into an array. In short, turn the $res object into an array.

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