/** * 设置3种分隔符 * * @param string $row_sep * @param string $col_sep * @param string $data_sep */ static function set_sep($row_sep = "\n", $col_sep = ",", $data_sep = ':') { self::$row_sep = $row_sep; self::$col_sep = $col_sep; self::$data_sep = $data_sep; }
static function array2str($array) { self::$col_sep = "\n"; return self::build_line($array); }