protected function assocToString($array, $keyValueSeparator = ' - ', $pairSeparator = '; ')
    {
        if (! is_array($array)) {
            return print_r($array, true);
        }

        foreach ($array as $key => &$value) {
            $value = $key . $keyValueSeparator . $value;
        }
        return implode($pairSeparator, $array);
    }
protected function assocToString($array, $keyValueSeparator = ' - ', $pairSeparator = '; ')
    {
        if (! is_array($array)) {
            return print_r($array, true);
        }

        foreach ($array as $key => &$value) {
            $value = $key . $keyValueSeparator . $value;
        }
        return implode($pairSeparator, $array);
    }
protected function assocToString ( $ array , $ keyValueSeparator = ' - ' , $ pairSeparator = '; ' ) { if ( ! is_array ( $ array ) ) { return print_r ( $ array , true ) ; } foreach ( $ array as $ key => & $ value ) { $ value = $ key . $ keyValueSeparator . $ value ; } return implode ( $ pairSeparator , $ array ) ; }
Represent associative array as string

@param array $array
@param string $keyValueSeparator
@param string $pairSeparator

@return string
Represent associative array as string