public static function toString(array $arr, $kvsep, $psep)
    {
        $result = [];

        foreach ($arr as $k => $v) {
            $result[] = "{$k}{$kvsep}{$v}";
        }

        return implode($psep, $result);
    }