You want to json_encode($json, JSON_FORCE_OBJECT) . The JSON_FORCE_OBJECT flag, as the name implies, forces the json output to be an object, ... ... <看更多>
Aug 29, 2020 - How To Convert PHP Array To JSON Object, php convert array to json object, convert json object to associative array in php, convert object to ... ... <看更多>