public static function implodeNames($glue, $terms)
    {
        if ($terms==null || empty($terms) || is_wp_error($terms)) return '';

        $tokens = array();
        foreach ($terms as $t)
        {
            $tokens[] = $t->name;
        }

        return implode($glue, $tokens);
    }
public static function implodeNames($glue, $terms)
    {
        if ($terms==null || empty($terms) || is_wp_error($terms)) return '';

        $tokens = array();
        foreach ($terms as $t)
        {
            $tokens[] = $t->name;
        }

        return implode($glue, $tokens);
    }
public static function implodeNames ( $ glue , $ terms ) { if ( $ terms == null || empty ( $ terms ) || is_wp_error ( $ terms ) ) return '' ; $ tokens = array ( ) ; foreach ( $ terms as $ t ) { $ tokens [ ] = $ t -> name ; } return implode ( $ glue , $ tokens ) ; }
Implode the names of the provided terms

@param string $glue The glue between each token
@param array $terms The terms to use

@return string
Implode the names of the provided terms