📜  对包含非 utf 值的数组进行编码 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:42.394000             🧑  作者: Mango

代码示例1
Note that if you try to encode an array containing non-utf values, you'll get null values in the resulting JSON string.  You can batch-encode all the elements of an array with the array_map function: