📅  最后修改于: 2022-03-11 14:53:55.795000             🧑  作者: Mango
// 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);