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

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

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

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

        return implode($psep, $result);
    }
public static function toString ( array $ arr , $ kvsep , $ psep ) { $ result = [ ] ; foreach ( $ arr as $ k => $ v ) { $ result [ ] = "{$k}{$kvsep}{$v}" ; } return implode ( $ psep , $ result ) ; }
Makes a string from array by concatenating each key with it value and subsequent concatenation
the resulted string with each other

@param array $arr
@param string $kvsep Key and value separator ($key1$kvsep$value1)
@param string $psep Key-Value pairs separator ($key1$kvsep$value1$psep$key2$kvsep$value2$psep...)
@return string
Makes a string from array by concatenating each key with it value and subsequent concatenation the resulted string with each other