public function formatTwoDimensionalArray($params)
    {
        $output = '';
        $values = $this->getParam($params, "values", null);
        $separators = $this->getParam($params, "separators", [' : ', ' / ', ' | ']);

        if (!is_array($values)) {
            return $output;
        }

        foreach ($values as $key => $value) {
            if ($output !== '') {
                $output .= $separators[2];
            }

            $output .= $key . $separators[0];

            if (!is_array($value)) {
                $output .= $value;
                continue;
            }

            $output .= implode($separators[1], $value);
        }
        return $output;
    }
public function formatTwoDimensionalArray($params)
    {
        $output = '';
        $values = $this->getParam($params, "values", null);
        $separators = $this->getParam($params, "separators", [' : ', ' / ', ' | ']);

        if (!is_array($values)) {
            return $output;
        }

        foreach ($values as $key => $value) {
            if ($output !== '') {
                $output .= $separators[2];
            }

            $output .= $key . $separators[0];

            if (!is_array($value)) {
                $output .= $value;
                continue;
            }

            $output .= implode($separators[1], $value);
        }
        return $output;
    }
public function formatTwoDimensionalArray ( $ params ) { $ output = '' ; $ values = $ this -> getParam ( $ params , "values" , null ) ; $ separators = $ this -> getParam ( $ params , "separators" , [ ' : ' , ' / ' , ' | ' ] ) ; if ( ! is_array ( $ values ) ) { return $ output ; } foreach ( $ values as $ key => $ value ) { if ( $ output !== '' ) { $ output .= $ separators [ 2 ] ; } $ output .= $ key . $ separators [ 0 ] ; if ( ! is_array ( $ value ) ) { $ output .= $ value ; continue ; } $ output .= implode ( $ separators [ 1 ] , $ value ) ; } return $ output ; }
return two-dimensional arrays in string

available parameters :
values => array 2D ['key A' => ['value 1', 'value 2'], 'key B' => ['value 3', 'value 4']]
separators => ['key value separator', 'value value separator', 'key key separator']

ex :
{format_array_2d values=['Colors' => ['Green', 'Yellow', 'Red'], 'Material' => ['Wood']] separators=[' : ', ' / ', ' | ']}
will output the format with specific format : "Colors : Green / Yellow / Red | Material : Wood"

@param $params
@return string
return two - dimensional arrays in string