📜  将数值数组转换为字符串数组php代码示例

📅  最后修改于: 2022-03-11 14:53:55.795000             🧑  作者: Mango

代码示例4
// for one-dimentional arrays
$str = implode('|', $arr);    // "v1|v2|v3"...

// for multi-dimensional/structured arrays, or to keep hierarchy
$str = json_encode($arr);
// or
$str = var_export($arr);