Data that needs to be operated:
$test =Array ( [0] => stdClass Object ( [tags] => 最快的车,Bloodhound,SSC [id] => 48326888 ) )
The method found on the Internet is to use get_object_vars to convert the class type into an array and then use foreach to traverse it
$array = get_object_vars($test);
More traversing stdclass object in PHP For articles related to the implementation code, please pay attention to the PHP Chinese website!