src/Drupal/Component/Utility/Tags.php
public static function implode($tags) {
    $encoded_tags = array();
    foreach ($tags as $tag) {
      $encoded_tags[] = self::encode($tag);
    }
    return implode(', ', $encoded_tags);
  }
public static function implode($tags) {
    $encoded_tags = array();
    foreach ($tags as $tag) {
      $encoded_tags[] = self::encode($tag);
    }
    return implode(', ', $encoded_tags);
  }
public static function implode ( $ tags ) { $ encoded_tags = array ( ) ; foreach ( $ tags as $ tag ) { $ encoded_tags [ ] = self :: encode ( $ tag ) ; } return implode ( ', ' , $ encoded_tags ) ; }
Implodes an array of tags into a string.

@param array $tags
An array of tags.

@return string
The imploded string.
Implodes an array of tags into a string .