JSON函数

    • array_to_json(anyarray [, pretty_bool])

      描述:返回JSON类型的数组。一个多维数组成为一个JSON数组的数组。如果pretty_bool为true,将在一维元素之间添加换行符。

      示例: