code: public function renderArrayAsText($array)
      {
          $values = array();
          foreach ($array as $key => $value) {
              $values[] = $this->escapeHtml($key) . ' = ' . $this->renderValue($value);
          }
  
          return implode(', ', $values);
      }
docs: Renders an array as text
  
  @param $array
  @return string