To convert PHP array to JSON, use the json_encode() function. The json_encode() is a built-in PHP function that converts an array to json.
確定! 回上一頁