If you want to enforce an array to encode to a JSON object, use: json_encode((object)$array); ... public '0' => string 'foo' (length=3)
確定! 回上一頁